setup.sh now puts dockerd in swarm mode if needed

This commit is contained in:
jash
2018-11-14 22:36:28 +01:00
committed by kexkey
parent a03c0265e8
commit 4ba6d4b4a5

9
dist/setup.sh vendored
View File

@@ -418,6 +418,15 @@ install_docker() {
fi
fi
docker swarm join-token worker > /dev/null 2>&1
local noSwarm=$?;
if [[ $DOCKER_MODE == 'swarm' && $noSwarm == 1 ]]; then
step " init docker swarm"
try docker swarm init > /dev/null 2>&1
next
fi
local net_entry=$(docker network ls | grep cyphernodenet);
if [[ $net_entry =~ 'cyphernodenet' ]]; then