1. create a docker yum repository [root@localhost~]# cd /etc/yum.repos.d/ [[email protected]]# vim docker.repo [dockerrepo] name=DockerRepository baseurl=https://yum.dockerproject.org/repo/main/centos/7 enabled=1 gpgcheck=1 gpgkey=https://yum.dockerproject.org/gpg (2) install the docker [root@localhost~]# yum install docker-engine (3) close the firewalld service in centos7 and install iptables-SER [root@localhost~]# systemctl disable firewalld rm’/etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service’ rm’/etc/systemd/system/basic.target.wants/firewalld.service’ [root@localhost~]# yum -y install iptables-services (4) open the iptables service [root@localhost~]# systemctl enable […]