1.安装docker:
1.1.卸载旧版(如果没有可以跳过次步骤)
sudo yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-selinux \
docker-engine-selinux \
docker-engine
安装依赖包:
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
添加软件源:
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo安装:
sudo yum makecache fastsudo yum install docker-ce
启动:
systemctl start docker错误说明:
如果出现下面错误:
requires containerd.io >= 1.2.2-3, but none of the providers can be installed
可以用一下方式解决:
wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.13-3.1.el7.x86_64.rpm
yum -y install ./containerd.io-1.2.13-3.1.el7.x86_64.rpm
标签:io,64,sudo,yum,测试,服务器,docker,x86 From: https://www.cnblogs.com/quxue/p/18067256