Docker Community Forums

Share and learn in the Docker community.

Unable to login to docker, TLS-enabled daemon without TLS?


(Albertoperezortiz) #1

Hi,

I have attempted to install Docker on Ubuntu trusty 14.04.2 following the online guideline.

I get this message when I try to login or type $docker run hello-world:

Post http:///var/run/docker.sock/v1.19/auth:dial unix /var/run/docker.sock: permission denied. Are you trying to connect toa TLS-enabled daemon without TLS?

When I type $sudo service docker start , it says that docker is already running

When checking docker’s version I get this message:
Client version: 1.7.0
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 0baf609
OS/Arch (client): linux/amd64
Get http:///var/run/docker.sock/v1.19/version:dial unix /var/run/docker.sock: permission denied. Are you trying to connect to a TLS-enabled daemon without TLS?

Any idea what is the problem?

Appreciate your help!


(Jerry Baker) #2

Hi,

You probably need to add sudo to your commands or add your user to the docker group and then log out/in again.

You can add your user account to the Docker group with:

sudo usermod -aG docker <username>