docker安装环境
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