1、环境准备
yun -y install gcc
yum -y install gcc-c++
yum install -y yum-utils
2、设置docker仓库国内镜像地址
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
3、刷新yum索引
yum makecache fast
4、安装docker ce
yum install docker-ce docker-ce-cli containerd.io docker-compose-plugin
5、启动docker
systemctl start docker
6、测试
docker version
7、卸载docker
systemctl stop docker
yum remove docker-ce docker-ce-cli containerd.io docker-compose-plugin
rm -rf /var/lib/docker
rm -rf /var/lib/containerd
https://docs.docker.com/engine/install/centos/
标签:containerd,ce,yum,install,卸载,docker,安装 From: https://www.cnblogs.com/smallcupforke/p/16808168.html