Docker – Couldn't connect to Docker daemon
I started getting a
ERROR: Couldn't connect to Docker daemon - you might need to run `docker-machine start default`.
but i am not using
docker-machine (Although i have version 0.5.2 installed)
I am running docker directly in my
Ubuntu 14.04 LTS with
Docker 1.11.0 e
Why am i getting this error? Should i uninstall docker-machine since i don’t use it or upgrade it? Is the problem something else?
One Solution collect form web for “Docker – Couldn't connect to Docker daemon”
It is hard to know what might be going on without some more information. But outside of Docker Machine, the error is usually because your user isn’t in the
docker group. By default, the socket doesn’t allow users other than
root to use the socket.
You can find more information and the solution at https://docs.docker.com/engine/installation/linux/ubuntulinux/#create-a-docker-group. But usually you just need to add your user to the
docker group with command
sudo usermod -aG docker $USER.
However, you need to be aware that this is the equivalent of granting root permissions to that user. You are allowing that user to run Docker containers that can mount folders as root.