Merge pull request #362 from justincormack/swarmadvert

On desktop editions, set default swarm advertise address to eth0
This commit is contained in:
Justin Cormack 2016-07-26 16:14:02 +01:00 committed by GitHub
commit 1cf7eb62a2

View File

@ -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