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 <campbell.allen@gmail.com>
Upstream-commit: 3cb9f7f6aaa8f39f7f73e205260a213a6e398416
Component: engine
This commit is contained in:
Campbell Allen
2015-06-18 06:51:21 +01:00
parent d80aedc3b4
commit f7e74202dd
@@ -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