Do not strip protocol from DOCKER_HOST.

In Docker 1.10, including protocol in DOCKER_HOST caused failure
to connect to daemon on host machine.  Must have fixed in 1.11.

(c) Copyright IBM Corp. 2016
This commit is contained in:
Justin Tyberg 2016-04-14 22:28:39 -04:00
parent 917c5fbf16
commit d8adee19af

4
hub.sh
View File

@ -20,9 +20,7 @@ for i in "$@" ; do
fi
# Set DOCKER_HOST to daemon of target machine
DOCKER_MACHINE_URL=$(docker-machine url $(docker-machine active))
# Strip the protocol from the url
DOCKER_HOST="${DOCKER_MACHINE_URL#*//*}"
DOCKER_HOST=$(docker-machine url $(docker-machine active))
fi
done