Using Docker for a long time, from CENTOS6 to 7, 6 is annoying the need to upgrade the kernel, Docker is not added to the System package by default.
This is the main record of the installation configuration steps in the 7.2 environment.
Installation is straightforward and the Yum install Docker.x86_64-y will complete the installation of Docker.
The configuration can be broadly divided into the following points:
1. Open Remote API
2. Specify a private warehouse address
3, SSL is more troublesome (test environment did not test)
The configuration files for the various services in CentOS 7 are quite different from those in 6 and are very unaccustomed at first.
Vim/etc/sysconfig/docker
Options= '--selinux-enabled-h tcp://0.0.0.0:6666-h unix:///var/run/docker.sock--insecure-registry 192.168.0.1:5000 ‘
Save exit, configuration complete.
#重新刷新systemctl
Systemctl Daemon-reload
#启动docker Daemon
Systemctl Start Docker.service
Service startup is not the same as the 6/etc/init.d/docker start. 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0007.gif "alt=" J_0007.gif "/>
In fact, in the installation process also encountered some problems, such as the CentOS 7 firewall has become FIREWALLD, not the previous iptables. So after the boot completes the remote API port has been unable to connect, must add 6666 port to can trust inside. However, if the security level is not very high, you can directly shut down the FIREWALLD service. 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0013.gif "alt=" J_0013.gif "/>
This article is from the "various software users" blog, please be sure to keep this source http://yaoyf.blog.51cto.com/4223135/1768237
Docker installation (CentOS 7.2)