1
0
mirror of https://github.com/docker/cli.git synced 2026-01-15 07:40:57 +03:00

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-04-22 10:19:18 +01:00
parent d80aedc3b4
commit f7e74202dd

View File

@@ -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