[root@ docker]# cat /etc/yum.repos.d/docker-main.repo [docker-main-repo] name=Docker main Repository baseurl=https://get.daocloud.io/docker/yum-repo/main/CentOS/7 enabled=1 gpgcheck=1 gpgkey=https://get.daocloud.io/docker/yum/gpg
[root@ docker]# yum install docker-engine –y
[root@ docker]# docker –version Docker version 17.05.0-ce, build 89658be
firewall-cmd –add-port=2377/tcp –permanent
firewall-cmd –add-port=7946/tcp –permanent
firewall-cmd –add-port=7946/udp –permanent
firewall-cmd –add-port=4789/udp –permanent
firewall-cmd –reload**
[root@ docker]# cat /etc/docker/daemon.json { “insecure-registries”:[“docker-registry.rmohan.com:5000”], “log-driver”:”json-file”, “log-opts”:{“max-size”:”1024m”,”max-file”:”2″} }
[root@ ~]# systemctl restart docker.service
[…]
Recent Comments