为什么80%的码农都做不了架构师?>>>
配置epel源
yum install http://mirrors.yun-idc.com/epel/6/i386/epel-release-6-8.noarch.rpm
安装docker
yum install docker-io
[root@AleiyeMainA yum.repos.d]# docker ps
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?
[root@AleiyeMainA yum.repos.d]# touch /var/run/docker.sock
[root@AleiyeMainA yum.repos.d]# ll /var/run/docker.sock
-rw-r--r-- 1 root root 0 10月 29 20:28 /var/run/docker.sock
[root@AleiyeMainA yum.repos.d]# docker ps
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可以手工创建