docker error:service didn't start

when run the calling "docker run hello-world" occur the  error as follow:

      Post http:///var/run/docker.sock/v1.19/containers/create: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?

run   "docker -d -D" show the detail errors as follow

FATA[0000] Error starting daemon: open /var/run/docker.pid: permission denied

Soltuion:

       

This error is because you have not started the docker service. Once you start the service it creates /var/run/docker.sock and then the error is resolved.

sudo service docker start

Then you can see if the installation is proper or not by sudo docker info.


你可能感兴趣的:(docker)