mirror of https://github.com/docker/cli.git
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>
This commit is contained in:
parent
e641a0f363
commit
0095e6fc23
|
@ -19,7 +19,7 @@ or execute `docker help`:
|
||||||
docker daemon [ --help | ... ]
|
docker daemon [ --help | ... ]
|
||||||
docker [ --help | -v | --version ]
|
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.
|
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*
|
**-D**, **--debug**=*true*|*false*
|
||||||
Enable debug mode. Default is 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.
|
unix://[/path/to/socket] to use.
|
||||||
The socket(s) to bind to in daemon mode specified using one or more
|
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*""
|
**-l**, **--log-level**="*debug*|*info*|*warn*|*error*|*fatal*""
|
||||||
Set the logging level. Default is `info`.
|
Set the logging level. Default is `info`.
|
||||||
|
|
Loading…
Reference in New Issue