docker 启动一个容器失败
发表于 : 2016-06-14 22:58
o@halo:~$ ps -aux | grep docker
o 22983 0.0 0.0 15952 912 pts/11 S+ 22:55 0:00 grep --color=auto docker
o@halo:~$ sudo service docker start
docker start/running, process 23078
o@halo:~$ docker run hello-world
docker: Cannot connect to the Docker daemon. Is the docker daemon running on this host?.
See 'docker run --help'.
o@halo:~$
1、这是为什么 ?? docker: Cannot connect to the Docker daemon. Is the docker daemon running on this host?.
2、看了一下官方的说明 ,Check that the DOCKER_HOST environment variable is not set for your shell. If it is, unset it. 说是和DOCKER_HOST环境变量有关,但这个变量我怎么设置呢?一点不会!
o 22983 0.0 0.0 15952 912 pts/11 S+ 22:55 0:00 grep --color=auto docker
o@halo:~$ sudo service docker start
docker start/running, process 23078
o@halo:~$ docker run hello-world
docker: Cannot connect to the Docker daemon. Is the docker daemon running on this host?.
See 'docker run --help'.
o@halo:~$
1、这是为什么 ?? docker: Cannot connect to the Docker daemon. Is the docker daemon running on this host?.
2、看了一下官方的说明 ,Check that the DOCKER_HOST environment variable is not set for your shell. If it is, unset it. 说是和DOCKER_HOST环境变量有关,但这个变量我怎么设置呢?一点不会!