centos7
# vim /etc/yum.repos.d/docker.repo
[DOCKER-CE]
name=docker-ce centos 7 x86_64
baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/x86_64/stable/
gpgcheck=0
enabled=1
环境配置
# systemctl stop firewalld && systemctl disable firewalld
# yum install iptables-service iptables zlib-devel openssl-devel zlib-devel
# systemctl stop iptables && systemctl disable iptables
# sed -i "s/SELINUX=enforcing/SELINUX=disabled" /etc/selinux/config
安装docker
# yum list | grep docker-ce
docker-ce.x86_64 3:18.09.2-3.el7 DOCKER-CE
docker-ce-cli.x86_64 1:18.09.2-3.el7 DOCKER-CE
docker-ce-selinux.noarch 17.03.3.ce-1.el7 DOCKER-CE
# yum install docker-ce -y
启动docker
# systemctl start docker
# systemctl enable docker
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。