cli/docs/reference/commandline
Aaron Lehmann 18cd5ac352 Split advertised address from listen address
There are currently problems with "swarm init" and "swarm join" when an
explicit --listen-addr flag is not provided. swarmkit defaults to
finding the IP address associated with the default route, and in cloud
setups this is often the wrong choice.

Introduce a notion of "advertised address", with the client flag
--advertise-addr, and the daemon flag --swarm-default-advertise-addr to
provide a default. The default listening address is now 0.0.0.0, but a
valid advertised address must be detected or specified.

If no explicit advertised address is specified, error out if there is
more than one usable candidate IP address on the system. This requires a
user to explicitly choose instead of letting swarmkit make the wrong
choice. For the purposes of this autodetection, we ignore certain
interfaces that are unlikely to be relevant (currently docker*).

The user is also required to choose a listen address on swarm init if
they specify an explicit advertise address that is a hostname or an IP
address that's not local to the system. This is a requirement for
overlay networking.

Also support specifying interface names to --listen-addr,
--advertise-addr, and the daemon flag --swarm-default-advertise-addr.
This will fail if the interface has multiple IP addresses (unless it has
a single IPv4 address and a single IPv6 address - then we resolve the
tie in favor of IPv4).

This change also exposes the node's externally-reachable address in
docker info, as requested by #24017.

Make corresponding API and CLI docs changes.

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
2017-06-02 00:10:02 +00:00
..
attach.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
build.md docs: add code-hints to builder page 2017-06-02 00:10:01 +00:00
cli.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
commit.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
cp.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
create.md Improve flag help consistency, and update docs 2017-06-02 00:07:51 +00:00
deploy.md Append --registry-auth with with 2017-06-02 00:10:02 +00:00
diff.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
docker_images.gif retooling for hugo 2017-06-02 00:06:58 +00:00
dockerd.md Split advertised address from listen address 2017-06-02 00:10:02 +00:00
events.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
exec.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
export.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
history.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
images.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
import.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
index.md Replace secrets with join tokens 2017-06-02 00:10:02 +00:00
info.md Replace secrets with join tokens 2017-06-02 00:10:02 +00:00
inspect.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
kill.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
load.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
login.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
logout.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
logs.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
menu.md add menu.md, make index.md command line reference, update typos/minor errors in cli docs 2017-06-02 00:07:47 +00:00
network_connect.md Rename `--net` to `--network` 2017-06-02 00:07:50 +00:00
network_create.md better command `docker network create -h` output 2017-06-02 00:07:51 +00:00
network_disconnect.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
network_inspect.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
network_ls.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
network_rm.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
node_demote.md Replace secrets with join tokens 2017-06-02 00:10:02 +00:00
node_inspect.md Replace secrets with join tokens 2017-06-02 00:10:02 +00:00
node_ls.md Remove "secrets" leftovers from docs 2017-06-02 00:10:02 +00:00
node_promote.md Replace secrets with join tokens 2017-06-02 00:10:02 +00:00
node_rm.md Replace secrets with join tokens 2017-06-02 00:10:02 +00:00
node_tasks.md Remove shorthand flags for "mount", "pretty", and "no-resolve" 2017-06-02 00:07:50 +00:00
node_update.md Replace secrets with join tokens 2017-06-02 00:10:02 +00:00
pause.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
plugin_disable.md docs: update reference docs for plugins 2017-06-02 00:10:01 +00:00
plugin_enable.md docs: update reference docs for plugins 2017-06-02 00:10:01 +00:00
plugin_inspect.md docs: update reference docs for plugins 2017-06-02 00:10:01 +00:00
plugin_install.md docs: update reference docs for plugins 2017-06-02 00:10:01 +00:00
plugin_ls.md docs: update reference docs for plugins 2017-06-02 00:10:01 +00:00
plugin_rm.md docs: fix copy/pasta error 2017-06-02 00:10:01 +00:00
port.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
ps.md docs: improve formatting and highlighting of docker ps reference 2017-06-02 00:10:01 +00:00
pull.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
push.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
rename.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
restart.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
rm.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
rmi.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
run.md Improve flag help consistency, and update docs 2017-06-02 00:07:51 +00:00
save.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
search.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
service_create.md Update --update-parallelism docs 2017-06-02 00:10:02 +00:00
service_inspect.md Update service inspect --pretty reference docs 2017-06-02 00:07:51 +00:00
service_ls.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
service_rm.md Add the advisory=rc metadata 2017-06-02 00:07:45 +00:00
service_scale.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
service_tasks.md Remove shorthand flags for "mount", "pretty", and "no-resolve" 2017-06-02 00:07:50 +00:00
service_update.md Update --update-parallelism docs 2017-06-02 00:10:02 +00:00
stack_config.md docs: add initial reference for "stack services" 2017-06-02 00:10:01 +00:00
stack_deploy.md docs: add initial reference for "stack services" 2017-06-02 00:10:01 +00:00
stack_rm.md docs: add initial reference for "stack services" 2017-06-02 00:10:01 +00:00
stack_services.md docs: add initial reference for "stack services" 2017-06-02 00:10:01 +00:00
stack_tasks.md docs: add initial reference for "stack services" 2017-06-02 00:10:01 +00:00
start.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
stats.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
stop.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
swarm_init.md Split advertised address from listen address 2017-06-02 00:10:02 +00:00
swarm_join.md Split advertised address from listen address 2017-06-02 00:10:02 +00:00
swarm_join_token.md Replace secrets with join tokens 2017-06-02 00:10:02 +00:00
swarm_leave.md Replace secrets with join tokens 2017-06-02 00:10:02 +00:00
swarm_update.md Update swarm init task-history-limit docs 2017-06-02 00:10:02 +00:00
tag.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
top.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
unpause.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
update.md Soften limitation of update kernel memory 2017-06-02 00:07:49 +00:00
version.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
volume_create.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
volume_inspect.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
volume_ls.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
volume_rm.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00
wait.md Updates on cli reference documentation 2017-06-02 00:07:49 +00:00