下载docker-ce repo
curl https://download.docker.com/linux/centos/docker-ce.repo -o /etc/yum.repos.d/docker-ce.repo
安装依赖
yum install -y https://mirrors.aliyun.com/docker-ce/linux/centos/7.5/x86_64/stable/Packages/containerd.io-1.4.8-3.1.el7.x86_64.rpm
安装docker-ce
yum install -y docker-ce
安装失败:提示 Error downloading packages: containerd.io-1.6.33-3.1.el7.x86_64: [Errno 256] No more mirrors to try.
解决办法:可能是网络波动原因,重新执行命令即可,直到出现以下提示。
启动docker
systemctl start docker
查看docker状态
systemctl status docker
查看docker信息
docker info