mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05: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>
This commit is contained in:
parent
423e6dc333
commit
3cb9f7f6aa
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue