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
source to share
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
source to share