Skip to content

Instantly share code, notes, and snippets.

@rusllonrails
Created August 14, 2014 12:16
Show Gist options
  • Save rusllonrails/94d95328a7360d843e52 to your computer and use it in GitHub Desktop.
Save rusllonrails/94d95328a7360d843e52 to your computer and use it in GitHub Desktop.
UBUNTU DOCKER FIG ERROR
FIX FOR: Couldn't connect to Docker daemon at http+unix://var/run/docker.sock - is it running?
Change the DOCKER_OPTS in /etc/default/docker to:
DOCKER_OPTS="-H tcp://127.0.0.1:4243 -H unix:///var/run/docker.sock"
Ruslan Khamidullin [1:57 PM] netstat -ant |grep 4243
tcp 0 0 127.0.0.1:4243 0.0.0.0:* LISTEN
Ruslan Khamidullin [1:57 PM] export DOCKER_HOST=tcp://localhost:4243
Ruslan Khamidullin [1:58 PM] $ echo $DOCKER_HOST
tcp://localhost:4243
@alouanemed
Copy link

*Change the DOCKER_OPTS in /etc/default/docker.io

If you are using docker.io

@Globegitter
Copy link

I had to run sudo service docker restart before the netstat command and everything else worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment