Skip to content

Instantly share code, notes, and snippets.

@rusllonrails
Created August 14, 2014 12:16

Revisions

  1. rusllonrails created this gist Aug 14, 2014.
    12 changes: 12 additions & 0 deletions UBUNTU DOCKER FIG ERROR
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    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