docker error:service didn't start

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

      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?ui

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

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

Soltuion:it

       

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.io

sudo service docker startfile

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

相關文章
相關標籤/搜索