1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/contrib
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
..
apparmor apparmor: fix version checks to work properly 2016-02-15 20:36:07 +11:00
builder bump Go to 1.6.3 2016-07-18 23:15:03 +02:00
completion Split advertised address from listen address 2016-07-24 09:23:07 -07:00
desktop-integration .: remove trailing white spaces 2015-03-25 13:38:17 -04:00
docker-device-tool Add docs about how to extend devicemapper thin pool 2016-04-20 10:49:51 +08:00
docker-engine-selinux Update the binary name in docker-engine-selinux/docker.fc. 2016-04-27 11:41:21 -04:00
gitdm Add gitdm configuration 2016-05-28 21:08:20 -07:00
httpserver integ-cli: Implement remote FakeStorage server for build via URL tests 2015-03-09 12:03:55 -07:00
init Remove docker.socket from rpm based systems 2016-07-19 09:31:43 -07:00
mkimage Update contrib/mkimage/debootstrap to account for Debian LTS changes 2016-05-04 08:39:45 -07:00
nnp-test Add support for NoNewPrivileges in docker 2016-03-07 09:47:02 -08:00
reprepro add support for building first ARM debian package 2016-01-29 00:21:17 +01:00
syntax Update Dockerfile highlight definitions 2016-06-05 17:45:21 +02:00
syscall-test Switch "syscall-test" image from "debian:jessie" to "buildpack-deps:jessie" so that "gcc" is already included 2016-01-14 13:51:30 -08:00
udev Add udev rules files for hiding the docker loopback devices from udisks 2013-12-02 09:11:06 -07:00
vagrant-docker Remove LXC support. 2015-11-05 17:09:57 -05:00
check-config.sh Add IPVLAN and DUMMY to check-config.sh 2016-07-07 21:21:57 -04:00
dockerize-disk.sh Fix dockerize-disk.sh working in non-en locale 2015-07-02 16:08:12 -07:00
download-frozen-image-v1.sh update download-frozen-image.sh to v2 registry 2015-12-01 13:16:42 -08:00
download-frozen-image-v2.sh request a new token before downloading each layer 2016-02-14 16:56:07 +08:00
mkimage-alpine.sh Additional repo and container cleanup 2015-12-28 14:11:56 +01:00
mkimage-arch-pacman.conf mkimage-arch: provide and use own pacman.conf 2014-01-21 14:22:56 +01:00
mkimage-arch.sh Add support for Arch Linux ARM. (Close #16695) 2015-12-13 19:48:40 +01:00
mkimage-archarm-pacman.conf Add support for Arch Linux ARM. (Close #16695) 2015-12-13 19:48:40 +01:00
mkimage-busybox.sh mkimage: use /var/tmp by default instead of /tmp 2014-06-27 14:43:12 +02:00
mkimage-crux.sh mkimage: use /var/tmp by default instead of /tmp 2014-06-27 14:43:12 +02:00
mkimage-debootstrap.sh .: remove trailing white spaces 2015-03-25 13:38:17 -04:00
mkimage-rinse.sh Moving man pages out of docs 2015-06-10 13:43:35 -07:00
mkimage-yum.sh New features in mkimage-yum.sh script 2015-12-20 14:20:30 +02:00
mkimage.sh Updated usage information because of removed short parameters. 2015-07-16 10:44:58 +02:00
nuke-graph-directory.sh Fix nuke script to remove from end of path 2015-09-09 15:34:05 -07:00
project-stats.sh Link to HTTPS urls in contrib comments/maintainers 2015-04-11 13:35:08 -04:00
README.md Add .md extension to readme for markdown rendering 2016-02-24 20:39:46 +00:00
report-issue.sh add execute bit to contrib/report-issue.sh 2016-02-16 12:55:15 +02:00
REVIEWERS Remove subdirectories MAINTAINERS files 2015-03-06 18:21:51 -08:00

The contrib directory contains scripts, images, and other helpful things which are not part of the core docker distribution. Please note that they could be out of date, since they do not receive the same attention as the rest of the repository.