config/bash/docker-machine.sh

11 lines
187 B
Bash
Raw Normal View History

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