目录
步骤
yum install -y wget
systemctl stop firewalld
systemctl disable firewalld
wget -P /etc/yum.repos.d/ https://download.docker.com/linux/centos/docker-ce.repo
yum install -y docker-ce
安装执行的版本
查看安装版本:
yum list docker-ce --showduplicates | sort -r
比如安装 Docker CE 的版本 18.03.0:
yum install -y docker-ce-18.03.0.ce-1.el7.centos
启动服务
systemctl start docker
systemctl enable docker
systemctl status docker
相关阅读: