Create a gist now

Instantly share code, notes, and snippets.

@sttts /boot2docker
Last active Jan 29, 2016

What would you like to do?
Simulating enough of boot2docker with docker-machine to build Kubernetes 1.0
#!/bin/bash
case "$1" in
status)
docker-machine status boot2docker | sed 's/Running/running/'
exit ${PIPESTATUS[0]}
;;
shellinit)
docker-machine env boot2docker | egrep -v '^#'
exit ${PIPESTATUS[0]}
;;
ip)
shift
exec docker-machine ip boot2docker
;;
ssh)
shift
exec docker-machine ssh boot2docker "$@"
;;
*)
exit 1
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment