配置epel源docker
yum install http://mirrors.yun-idc.com/epel/6/i386/epel-release-6-8.noarch.rpmjson
安裝dockerthis
yum install docker-iounix
[root@AleiyeMainA yum.repos.d]# docker psrest
Get http:///var/run/docker.sock/v1.19/containers/json: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?it
[root@AleiyeMainA yum.repos.d]# touch /var/run/docker.sockio
[root@AleiyeMainA yum.repos.d]# ll /var/run/docker.sock配置
-rw-r--r-- 1 root root 0 10月 29 20:28 /var/run/docker.sockfile
[root@AleiyeMainA yum.repos.d]# docker psservice
Cannot connect to the Docker daemon. Is 'docker -d' running on this host?
[root@AleiyeMainA yum.repos.d]# service docker status
docker 已停
[root@AleiyeMainA yum.repos.d]# service docker restart
中止 docker: [失敗]
Starting cgconfig service: [肯定]
Starting docker: [肯定]
[root@AleiyeMainA yum.repos.d]# service docker status
docker (pid 9922) 正在運行...
[root@AleiyeMainA yum.repos.d]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
安裝後啓動docker就行了,要是沒有/var/run/docker.sock能夠手工建立