Skip to content

Instantly share code, notes, and snippets.

@sttts
Last active January 29, 2016 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sttts/b9c03604be3da01b8d60 to your computer and use it in GitHub Desktop.
Save sttts/b9c03604be3da01b8d60 to your computer and use it in GitHub Desktop.
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