• Register
0 votes
61 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

1 vote
1 answer 161 views
161 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 139 views
139 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 521 views
521 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
0 votes
2 answers 652 views
652 views
Problem : I have installed docker-machine 0.1.0 and docker-compose 1.1.0 on my Mac OS 10.8.5. My Docker-machine is running normally and it can be connected by docker-machine ssh as follows: $ docker-machine ls NAME ACTIVE DRIVER STATE URL SWARM dev * virtualbox ... Dockerfile FROM centos:centos7 DOCKER_HOST tcp://192.168.99.100:2376 docker-compose.yml web: build: . Why can't I connect? Any clues?
asked Nov 24, 2019 alecxe 7.5k points
0 votes
1 answer 111 views
111 views
Problem : I am very new to the Linux but want to set up my MySQL databases on the Amazon ec2 instance. I have followed some directions I found about resetting a user login pass by using a --skip-grant-tables option of the MySQL. Now I want to add my user ... HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement How can I turn above option off?
asked Jan 30, 2020 jwilliam 3.9k points
0 votes
1 answer 25 views
25 views
Problem: I have only basic knowledge in docker. I am trying to follow the online tutorial to create the first docker Image and luckily for me it went successfully. I have successfully logged in into the docker and now I am trying to push the Image into the docker ... type of error. Denied: Requested access to the resource is denied. Can anyone give me a little bit of hint towards fixing problem?
asked Jul 25, 2020 Raphael Pacheco 4.9k points
0 votes
2 answers 143 views
143 views
Problem : I am using Mac. I want to run my docker code. Following is my command: docker run -d -p 80:80 --name webserver nginx However I am facing below error: docker: Error response from daemon: driver failed programming external connectivity on endpoint webserver ( ... userland proxy: Bind for 0.0.0.0:80: unexpected error (Failure EADDRINUSE). Please let me know if any solution on my error.
asked Dec 3, 2019 alecxe 7.5k points