From 3cb9f7f6aaa8f39f7f73e205260a213a6e398416 Mon Sep 17 00:00:00 2001 From: Campbell Allen Date: Wed, 22 Apr 2015 10:19:18 +0100 Subject: [PATCH] add note about DOCKER_HOST env var overriding unix socket config when trying to use docker without sudo and the DOCKER_HOST env var is set docker tries to connect to the specified host instead of using the unix socket. Signed-off-by: Campbell Allen --- docs/installation/ubuntulinux.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/installation/ubuntulinux.md b/docs/installation/ubuntulinux.md index 5af6b5a498..ea88d2715a 100644 --- a/docs/installation/ubuntulinux.md +++ b/docs/installation/ubuntulinux.md @@ -175,6 +175,12 @@ To create the `docker` group and add your user: $ docker run hello-world + If this fails with a message similar to this: + + Cannot connect to the Docker daemon. Is 'docker -d' running on this host? + + Check that the `DOCKER_HOST` environment variable is not set for your shell. + If it is, unset it. ### Adjust memory and swap accounting