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:
parent
917c5fbf16
commit
d8adee19af
4
hub.sh
4
hub.sh
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user