# A simple wrapper for docker-machine. function dcontrol() { if [ $1 = "off" ]; then eval $(docker-machine env -u) return fi eval $(docker-machine env $1) }