parent
390e918417
commit
005323ff3c
5
abra
5
abra
@ -1608,6 +1608,11 @@ sub_server_init() {
|
||||
# when there are often multiple internal addresses assigned to eth0
|
||||
default_ipv4="$(ip route get 8.8.8.8 | head -1 | awk '{print $7}')"
|
||||
|
||||
if [ "$abra___debug" = "true" ]; then
|
||||
DOCKER_ENDPOINT=$(docker context inspect "$DOCKER_CONTEXT" -f "{{.Endpoints.docker.Host}}" 2>/dev/null)
|
||||
debug "Connecting to $DOCKER_CONTEXT via SSH ($DOCKER_ENDPOINT)"
|
||||
fi
|
||||
|
||||
docker swarm init --advertise-addr "$default_ipv4" || true
|
||||
docker network create --driver=overlay proxy --scope swarm || true
|
||||
}
|
||||
|
Reference in New Issue
Block a user