mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-25 03:34:58 +00:00
On desktop editions, set default swarm advertise address to eth0
This allows plain `swarm init` to work. We do not support multi node clusters yet as there is no way to reqach this address from externally at present. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
d6752e9eb8
commit
6c9a66263e
@ -21,6 +21,15 @@ start()
|
|||||||
DOCKER_OPTS="${DOCKER_OPTS} -H 0.0.0.0:2375"
|
DOCKER_OPTS="${DOCKER_OPTS} -H 0.0.0.0:2375"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# On desktop editions, force swarm advertise address to be on eth0
|
||||||
|
# Currently we do not support multi node swarm on these editions
|
||||||
|
# for cloud plartforms the init scripts set this up
|
||||||
|
case "$(mobyplatform)" in
|
||||||
|
windows|mac)
|
||||||
|
DOCKER_OPTS="${DOCKER_OPTS} --swarm-default-advertise-addr=eth0"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
# some config is always in /etc/docker cannot specify alternative eg certs
|
# some config is always in /etc/docker cannot specify alternative eg certs
|
||||||
if mobyconfig exists etc/docker
|
if mobyconfig exists etc/docker
|
||||||
then
|
then
|
||||||
|
Loading…
Reference in New Issue
Block a user