Closes 6937. Allows setting of docker config dir.

Can now dynamically set the docker config directory through an
environment variable.

export DOCKER_CONFIG=/path/to/docker_config/

Default behavior remains the same, e.g. ~/.docker

Documentation for change added to the https.md docs.

Docker-DCO-1.1-Signed-off-by: James A. Kyle <james@jameskyle.org> (github: jameskyle)
Upstream-commit: c0471ee35aa58a99b423ad914301194e8f3663c1
Component: engine
This commit is contained in:
James Kyle
2014-07-09 10:05:16 -07:00
parent dbb0dbb0d2
commit 4e42254381
2 changed files with 14 additions and 5 deletions

View File

@ -125,4 +125,9 @@ Docker in various other modes by mixing the flags.
certificate, authenticate server based on given CA
The client will send its client certificate if found, so you just need
to drop your keys into ~/.docker/<ca, cert or key>.pem
to drop your keys into ~/.docker/<ca, cert or key>.pem. Alternatively, if you
want to store your keys in another location, you can specify that location
using the environment variable `DOCKER_CONFIG`.
$ export DOCKER_CONFIG=${HOME}/.dockers/zone1/
$ docker --tlsverify ps