From 0095e6fc234d10b6dd515bbb55a2fb2af0d3f863 Mon Sep 17 00:00:00 2001 From: Sven Dowideit Date: Fri, 21 Aug 2015 23:28:49 +1000 Subject: [PATCH] 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 --- docs/reference/commandline/cli.md | 2 +- man/docker.1.md | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/reference/commandline/cli.md b/docs/reference/commandline/cli.md index d2218667d7..2eba7636e1 100644 --- a/docs/reference/commandline/cli.md +++ b/docs/reference/commandline/cli.md @@ -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. diff --git a/man/docker.1.md b/man/docker.1.md index 41329deb3b..18df3b5cf2 100644 --- a/man/docker.1.md +++ b/man/docker.1.md @@ -36,10 +36,12 @@ To see the man page for a command run **man docker **. **-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`.