yum安装gcc yum -y install gcc yum -y install gcc- c++ 安装需要的软件包 sudo yum install -y yum-utils 设置镜像仓库 sudo yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo 重建yum索引 yum makecache fast 安装docker引擎 sudo yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin 启动docker引擎 systemctl start docker
查看docker引擎状态
docker info
阿里云镜像加速器地址
https://cr.console.aliyun.com/cn-shanghai/instances/mirrors
docker卸载
sudo yum remove docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-ce-rootless-extras
sudo rm -rf /var/lib/docker
sudo rm -rf /var/lib/containerd
docker只有相对于虚拟机有优势,是因为docker只能安装了必须的基础服务,centos无论是否需要都进行了安装
标签:plugin,sudo,ce,yum,install,卸载,docker,安装 From: https://www.cnblogs.com/q202105271618/p/18115127