Default the tcp port to 2376 if tls is on, and 2375 if not
Refactor so that the Host flag validation doesn't destroy the user's input,
and then post process the flags when we know the TLS options
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
Upstream-commit: 0095e6fc23
Component: cli
This commit is contained in:
committed by
Tibor Vass
parent
d4f3c46baf
commit
fb5c95b1a3
@@ -19,7 +19,7 @@ or execute `docker help`:
|
||||
docker daemon [ --help | ... ]
|
||||
docker [ --help | -v | --version ]
|
||||
|
||||
-H, --host=[]: The socket(s) to bind to in daemon mode, specified using one or more tcp://host:port, unix:///path/to/socket, fd://* or fd://socketfd.
|
||||
-H, --host=[]: The socket(s) to talk to the Docker daemon in the format of tcp://host:port/path, unix:///path/to/socket, fd://* or fd://socketfd.
|
||||
|
||||
A self-sufficient runtime for Linux containers.
|
||||
|
||||
|
||||
@@ -36,10 +36,12 @@ To see the man page for a command run **man docker <command>**.
|
||||
**-D**, **--debug**=*true*|*false*
|
||||
Enable debug mode. Default is false.
|
||||
|
||||
**-H**, **--host**=[unix:///var/run/docker.sock]: tcp://[host:port] to bind or
|
||||
**-H**, **--host**=[unix:///var/run/docker.sock]: tcp://[host]:[port][path] to bind or
|
||||
unix://[/path/to/socket] to use.
|
||||
The socket(s) to bind to in daemon mode specified using one or more
|
||||
tcp://host:port, unix:///path/to/socket, fd://* or fd://socketfd.
|
||||
tcp://host:port/path, unix:///path/to/socket, fd://* or fd://socketfd.
|
||||
If the tcp port is not specified, then it will default to either `2375` when
|
||||
`--tls` is off, or `2376` when `--tls` is on, or `--tlsverify` is specified.
|
||||
|
||||
**-l**, **--log-level**="*debug*|*info*|*warn*|*error*|*fatal*""
|
||||
Set the logging level. Default is `info`.
|
||||
|
||||
Reference in New Issue
Block a user