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)

  • mongodb replica set master “stateStr” : “REMOVED”
  • Docker - Running Apache and Multiple JARs
  • Docker + Nginx: Getting proxy_pass to work
  • docker apt-get update error
  • Docker in IntelliJ IDEA for Mac not working
  • Docker - Unable to push image to private registry
  • I am running docker directly in my Ubuntu 14.04 LTS with Docker 1.11.0 e Docker-compose 1.7.0.

    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?

  • Why jobs and system config were lost when run an image commited from a running jenkins container?
  • How to configure Docker for windows to push using hosts file for repository
  • Invalid US-ASCII character using SASS
  • NginX as HTTPS reverse proxy for multiple sub-domains?
  • Why does parse_git_branch fail ONLY in Docker terminal window
  • Update of Docker intermediate images
  • 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.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.