在有网络的服务器执行命令获取rpm包
yum install --downloadonly --downloaddir=路径 docker-ce
安装
rpm -ivh *.rpm --nodeps --force
安装完成后,进行检查
systemctl start docker
systemctl enbale docker
docker version
下载地址:
https://download.docker.com/linux/centos/7/x86_64/stable/Packages/
http://mirrors.163.com/centos/7/os/x86_64/Packages/
网友评论