mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-21 10:09:07 +00:00
Merge pull request #362 from justincormack/swarmadvert
On desktop editions, set default swarm advertise address to eth0
This commit is contained in:
commit
1cf7eb62a2
@ -21,6 +21,15 @@ start()
|
||||
DOCKER_OPTS="${DOCKER_OPTS} -H 0.0.0.0:2375"
|
||||
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
|
||||
if mobyconfig exists etc/docker
|
||||
then
|
||||
|
Loading…
Reference in New Issue
Block a user