On Linux Mint 17.1 x86_64 with kernel 3.13.0-48-generic and OpenSSL version 1.0.1f-1ubuntu2.11; whenever I try to execute any docker command (like docker login
or docker run hello-world
), I get the following error:
FATA[0000] Get http:///var/run/docker.sock/v1.18/info: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?
I have made a group called docker
using sudo usermod -aG docker username
, I have tried running the commands both as root and normally, added $(boot2docker shellinit 2> /dev/null)
to ~/.profile
as instructed here, restarted my PC and reinstalled OpenSSL.
Any idea what am I missing? Can this be a hardware issue?
I had this same problem when I tried to follow along some online resource; I was able to resolve this by running docker as the super user, try adding
sudo
before your docker commands:sudo docker ps -a
sudo docker run hello-world
Hope it helps.
Try installing apparmor
There are other things to look for in this answer too.
I faced the same issue when I was creating docker image from Jenkins simply add the user to docker group and then restart docker services and in my case I have to restart Jenkins services
This was the error which I got
This can happen when the docker service is unable to start.
sudo service docker start
orrestart
returning no output does not mean that it started successfully. You can usesudo /etc/init.d/docker status
to find out if, and why, it failed to start.In my case, it was due to lack of disk space.
After deleting some files, I was able to restart the service and run docker containers normally.
Ran into the same problem after following the steps at https://docs.docker.com/linux/step_one/. docker service was running and I had also added the user to docker group. docker commands were not working without sudo.
What solved it for me was restarting the PC. Note- Before PC restart, I had also tried stopping and starting the docker daemon. I'm on Ubuntu 12.04.
In my case it was because of file
/Users/user/.ssh/config
has permissions 777. To check it run in terminalssh docker@localhost