Docker TLS error on Ubuntu

I am trying to learn about Docker on ubuntu 15.04 .

When I issue any command using docker like "docker info " the following error occurs:

FATA[0000] Post http:///var/run/docker.sock/v1.17/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?

      

I do not understand what it means.

Can anyone help me fix this error. thank

+3


source to share


3 answers


If you are using boot2docker and running it this should fix your problem



eval "$ (boot2docker shellinit)"

+1


source


Does docker work?

service docker.io restart

      

Are you running as root?



sudo docker info

      

Are Env variables set?

env | grep DOCKER
DOCKER_HOST=tcp://.....:2376
DOCKER_TLS_VERIFY=1
DOCKER_CERT_PATH=/.....

      

+1


source


I ran into this issue a bit earlier while trying to follow some of the original Ubuntu installation instructions and was unable to start the docker service.

I installed the latest docker version:

wget -qO- https://get.docker.com/gpg |sudo apt-key add -
curl -sSL https://get.docker.com/ubuntu | sudo sh
sudo apt-get update

      

Then, after adding my local user to the docker group and rebooting, I still got into the Daemon TLS error.

Investigating the service it ended up in disguised in and I tried to expose it, but it still won't work until I also exposed docker.socket and enabled the service with the following commands:

sudo systemctl unmask docker.service
sudo systemctl unmask docker.socket
sudo systemctl enable docker.service

      

Found the answer to the last snippet here in case any of you hit this issue too: https://groups.google.com/forum/#!topic/docker-user/3Sou7Umo0SA

+1


source







All Articles