moby/docs/reference/commandline
Aaron Lehmann a0ccd0d42f 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>
2016-07-24 09:23:07 -07:00
..
attach.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
build.md docs: add code-hints to builder page 2016-07-20 16:18:44 +02:00
cli.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
commit.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
cp.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
create.md Improve flag help consistency, and update docs 2016-07-16 01:58:01 +02:00
deploy.md Append --registry-auth with with 2016-07-22 10:38:56 +02:00
diff.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
docker_images.gif retooling for hugo 2015-06-15 13:19:38 -07:00
dockerd.md Split advertised address from listen address 2016-07-24 09:23:07 -07:00
events.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
exec.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
export.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
history.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
images.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
import.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
index.md Replace secrets with join tokens 2016-07-21 15:23:03 -07:00
info.md Replace secrets with join tokens 2016-07-21 15:23:03 -07:00
inspect.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
kill.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
load.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
login.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
logout.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
logs.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
menu.md add menu.md, make index.md command line reference, update typos/minor errors in cli docs 2016-06-30 14:30:11 -07:00
network_connect.md Rename --net to --network 2016-07-12 13:01:35 -07:00
network_create.md better command docker network create -h output 2016-07-16 15:32:17 +08:00
network_disconnect.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
network_inspect.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
network_ls.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
network_rm.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
node_demote.md Replace secrets with join tokens 2016-07-21 15:23:03 -07:00
node_inspect.md Replace secrets with join tokens 2016-07-21 15:23:03 -07:00
node_ls.md Remove "secrets" leftovers from docs 2016-07-23 01:28:20 +02:00
node_promote.md Replace secrets with join tokens 2016-07-21 15:23:03 -07:00
node_rm.md Replace secrets with join tokens 2016-07-21 15:23:03 -07:00
node_tasks.md Remove shorthand flags for "mount", "pretty", and "no-resolve" 2016-07-13 18:47:29 +02:00
node_update.md Replace secrets with join tokens 2016-07-21 15:23:03 -07:00
pause.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
plugin_disable.md docs: update reference docs for plugins 2016-07-20 23:37:55 +02:00
plugin_enable.md docs: update reference docs for plugins 2016-07-20 23:37:55 +02:00
plugin_inspect.md docs: update reference docs for plugins 2016-07-20 23:37:55 +02:00
plugin_install.md docs: update reference docs for plugins 2016-07-20 23:37:55 +02:00
plugin_ls.md docs: update reference docs for plugins 2016-07-20 23:37:55 +02:00
plugin_rm.md docs: fix copy/pasta error 2016-07-20 23:59:38 +02:00
port.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
ps.md docs: improve formatting and highlighting of docker ps reference 2016-07-21 12:27:39 +02:00
pull.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
push.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
rename.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
restart.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
rm.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
rmi.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
run.md Improve flag help consistency, and update docs 2016-07-16 01:58:01 +02:00
save.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
search.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
service_create.md Update --update-parallelism docs 2016-07-22 19:07:10 -07:00
service_inspect.md Update service inspect --pretty reference docs 2016-07-14 11:23:03 +02:00
service_ls.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
service_rm.md Add the advisory=rc metadata 2016-06-20 11:54:53 +00:00
service_scale.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
service_tasks.md Remove shorthand flags for "mount", "pretty", and "no-resolve" 2016-07-13 18:47:29 +02:00
service_update.md Update --update-parallelism docs 2016-07-22 19:07:10 -07:00
stack_config.md docs: add initial reference for "stack services" 2016-07-20 18:56:49 +02:00
stack_deploy.md docs: add initial reference for "stack services" 2016-07-20 18:56:49 +02:00
stack_rm.md docs: add initial reference for "stack services" 2016-07-20 18:56:49 +02:00
stack_services.md docs: add initial reference for "stack services" 2016-07-20 18:56:49 +02:00
stack_tasks.md docs: add initial reference for "stack services" 2016-07-20 18:56:49 +02:00
start.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
stats.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
stop.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
swarm_init.md Split advertised address from listen address 2016-07-24 09:23:07 -07:00
swarm_join.md Split advertised address from listen address 2016-07-24 09:23:07 -07:00
swarm_join_token.md Replace secrets with join tokens 2016-07-21 15:23:03 -07:00
swarm_leave.md Replace secrets with join tokens 2016-07-21 15:23:03 -07:00
swarm_update.md Update swarm init task-history-limit docs 2016-07-24 11:13:06 +02:00
tag.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
top.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
unpause.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
update.md Soften limitation of update kernel memory 2016-07-12 08:07:24 +08:00
version.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
volume_create.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
volume_inspect.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
volume_ls.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
volume_rm.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00
wait.md Updates on cli reference documentation 2016-07-07 20:43:18 +02:00