resolve the config file from the sudo user

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
Upstream-commit: b610528a6a
Component: cli
This commit is contained in:
Antonio Murdaca
2016-02-22 14:48:25 +01:00
committed by Tibor Vass
parent b9e822f368
commit ee3bdc6ec8

View File

@ -78,6 +78,9 @@ For example:
Instructs Docker to use the configuration files in your `~/testconfigs/`
directory when running the `ps` command.
> **Note**: If you run docker commands with `sudo`, Docker first looks for a configuration
> file in `/root/.docker/`, before looking in `~/.docker/` for the user that did the sudo call.
Docker manages most of the files in the configuration directory
and you should not modify them. However, you *can modify* the
`config.json` file to control certain aspects of how the `docker`