mirror of https://github.com/docker/cli.git
Add DOCKER_TLS_VERIFY environment variable, equivalent to --tlsverify flag
This makes it possible to make the Docker client "secure by default" without wrapping the binary in a shell alias so that `--tlsverify` is always passed. Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
parent
c5e74b80e2
commit
57d75938cd
|
@ -116,6 +116,14 @@ the `-H` flag for the client.
|
||||||
$ sudo docker ps
|
$ sudo docker ps
|
||||||
# both are equal
|
# both are equal
|
||||||
|
|
||||||
|
Setting the `DOCKER_TLS_VERIFY` environment variable to any value other than the empty
|
||||||
|
string is equivalent to setting the `--tlsverify` flag. The following are equivalent:
|
||||||
|
|
||||||
|
$ sudo docker --tlsverify ps
|
||||||
|
# or
|
||||||
|
$ export DOCKER_TLS_VERIFY=1
|
||||||
|
$ sudo docker ps
|
||||||
|
|
||||||
IP masquerading uses address translation to allow containers without a public IP to talk
|
IP masquerading uses address translation to allow containers without a public IP to talk
|
||||||
to other machines on the Internet. This may interfere with some network topologies and
|
to other machines on the Internet. This may interfere with some network topologies and
|
||||||
can be disabled with --ip-masq=false.
|
can be disabled with --ip-masq=false.
|
||||||
|
|
Loading…
Reference in New Issue