一键部署
curl -fsSL https://get.docker.com/ | sh
CentOS
如果是centos,上面的安装命令会在系统上添加yum源:
/etc/yum.repos.d/docker-ce.repo
然后用yum安装:
yum install -y docker-ce
yum源文件和rpm包都在网页download.docker.com中,可以自己下载安装:
wget https://download.docker.com/linux/centos/docker-ce.repo
mv docker-ce.repo /etc/yum.repos.d
yum install -y docker-ce
或者直接下载rpm安装:
wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-17.09.0.ce-1.el7.centos.x86_64.rpm
yum localinstall docker-ce-17.09.0.ce-1.el7.centos.x86_64.rpm
原文链接:https://blog.csdn.net/yk20091201/article/details/80016135
网友评论