• Register
0 votes
78 views

Problem :

After I tried to update my Docker version to 0.8.0, I face an error message while I try to enter sudo docker version as below :

Client version: 0.8.0
Go version (client): go1.2
Git commit (client): cc3a8c8
2020/01/01 12:54:16 Can't connect to docker daemon. Is 'docker -d' running on this host?

And I have tried to follow the instructions and entered the command sudo docker -d, and I got below error :

[/var/lib/docker|2462000b] +job initserver()
[/var/lib/docker|2462000b.initserver()] Creating server
open /var/lib/docker/aufs/layers/cf2414da53f9bcfaa48bc3d58360d7f1cfd3784e4fe51fbef95197709dfc285d: no such file or directory[/var/lib/docker|2462000b] -job initserver() = ERR (1)
2020/01/01 12:55:57 initserver: open /var/lib/docker/aufs/layers/cf2414da53f9bcfaa48bc3d58360d7f1cfd3784e4fe51fbef95197709dfc285d: no such file or directory

How can I resolve the issue?

6 5 3
7,540 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

For Linux

The Post-installation steps for Linux docs shows the below steps:

  1. Create your docker group.

           sudo groupadd docker

  1. Add your user to your docker group.

           sudo usermod -aG docker $(whoami)

  1. Now log out and log back in to make sure that docker runs with the correct permissions.
  1. Start your docker.

          sudo service docker start

For Mac OS X

It is very necessary to add environments variables:

docker-machine start # Start your virtual machine for docker

docker-machine env  # It will help to get your environment variables

eval "$(docker-machine env default)" # Set your environment variables

Your  docker-machine start command will output the comments to guide you the process.

 

9 7 4
38,600 points

Related questions

0 votes
1 answer 7 views
7 views
Problem: After I update my Docker version to 0.8.0, I get an error message while entering sudo docker version, I got this: 2014/02/19 12:54:16 Can't connect to docker daemon. Is 'docker -d' running on this host? How do I solve the problem?
asked Apr 24 ummeshani 10.8k points
1 vote
1 answer 21 views
21 views
Problem : I am trying to add one manager in Docker swarm. But it is showing me the below error. Cannot connect to the Docker daemon. Is the docker daemon running on this host? Any ideas on what I need to do to fix this? Thanks!
asked Mar 31 Sabbir Hossain 14.6k points
0 votes
1 answer 4 views
4 views
Problem: I have applied every solution available on internet but still I cannot run Docker. I want to use Scrapy Splash on my server. Here is history of commands I ran. docker run -p 8050:8050 scrapinghub/splash sudo docker run -p 8050:8050 scrapinghub/splash sudo usermod -aG docker $(whoami) sudo ... 0.0 0.0 17200 964 pts/1 S 17:06 0:00 newgrp docker root 30221 0.0 0.0 17200 964 pts/1 S 17:0
asked Apr 24 sumaiya simi 43.9k points
1 vote
1 answer 194 views
194 views
Problem : Facing the weird following issue cannot connect to the docker daemon at unix:///var/run/docker.sock. is the docker daemon running?
asked Nov 8, 2019 peterlaw 6.9k points
1 vote
1 answer 192 views
192 views
Problem : Encountered bellow docker error cannot connect to the docker daemon at unix:///var/run/docker.sock. is the docker daemon running?
asked Nov 8, 2019 peterlaw 6.9k points
0 votes
1 answer 24 views
24 views
Problem: I am stuck during learning as I have already mentioned in my question someone please cooperate me to continue my project-Thanks
asked Mar 21 shamimkhan 15.1k points
0 votes
1 answer 7 views
7 views
Problem: I have applied every solution available on internet but still I cannot run Docker. I want to use Scrapy Splash on my server. Here is history of commands I ran. docker run -p 8050:8050 scrapinghub/splash sudo docker run -p 8050:8050 scrapinghub/splash sudo usermod -aG docker $( ... 17200 964 pts/1 S 17:06 0:00 newgrp docker root 30221 0.0 0.0 17200 964 pts/1 S 17:09 0:00 newgrp docker
asked Apr 24 ochena 23.3k points
0 votes
1 answer 12 views
12 views
Problem: I get an error message while entering sudo docker version: After I update my Docker version to 0.8.0, Client version: 0.8.0 Go version (client): go1.2 Git commit (client): cc3a8c8 2014/02/19 12:54:16 Can't connect to ... ) = ERR (1) 2014/02/19 12:55:57 initserver: open /var/lib/docker/aufs/layers/cf2414da53f9bcfaa48bc3d58360d7f1cfd3784e4fe51fbef95197709dfc285d: no such file or directory
asked Apr 22 Jack20 5.1k points
0 votes
2 answers 7 views
7 views
Problem: I am stuck during learning as I have already mentioned in my question someone please cooperate me to continue my project-Thanks
asked Mar 27 ashik 14.6k points
0 votes
1 answer 733 views
733 views
Problem : I installed the docker-machine 0.1.0 and docker-compose 1.1.0 on the Mac OS 10.8.5. Docker-machine is running normally and able to connect by the docker-machine ssh. But can't connect from docker-compose getting following error: $ docker-compose up ... running? If it's at a non-standard location, specify the URL with the DOCKER_HOST environment variable. Why can't I connect? Any clues?
asked Jan 20, 2020 jwilliam 3.9k points