CentOS 7 版本
[root@gitserver ~]# uname -r
3.10.0-327.el7.x86_64
[root@gitserver ~]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
docker 版本
[root@gitserver /]# docker --version
Docker version 1.12.6, build 3a094bd/1.12.6
[root@gitserver /]#
1.修改/etc/sysconfig/docker文件,在最后增加一行DOCKER_OPTS
# docker-latest daemon can be used by starting the docker-latest unitfile.
# To use docker-latest client, uncomment below lines
#DOCKERBINARY=/usr/bin/docker-latest
#DOCKERDBINARY=/usr/bin/dockerd-latest
#DOCKER_CONTAINERD_BINARY=/usr/bin/docker-containerd-latest
#DOCKER_CONTAINERD_SHIM_BINARY=/usr/bin/docker-containerd-shim-latest
DOCKER_OPTS="-H unix:///var/run/docker.sock -H 0.0.0.0:5555"
2.修改/usr/lib/systemd/system/docker.serv