Moved boot2docker functionality to its own file. Also added a docker-machine plugin, which sets the same variables for docker-machine.

This commit is contained in:
Nils Winkler
2015-07-16 13:10:38 +02:00
parent 3a07bb75b2
commit 90271980fd
3 changed files with 27 additions and 14 deletions

View File

@@ -0,0 +1,11 @@
cite about-plugin
about-plugin 'Helpers to get Docker setup correctly for docker-machine'
# Note, this might need to be different if you use a machine other than 'dev',
# or its configured for a different IP
if [[ `uname -s` == "Darwin" ]]; then
export DOCKER_HOST="tcp://192.168.99.100:2376"
export DOCKER_CERT_PATH="~/.docker/machine/machines/dev"
export DOCKER_TLS_VERIFY=1
export DOCKER_MACHINE_NAME="dev"
fi