diff --git a/bash/docker-machine.sh b/bash/docker-machine.sh new file mode 100644 index 0000000..27005bc --- /dev/null +++ b/bash/docker-machine.sh @@ -0,0 +1,10 @@ +# A simple wrapper for docker-machine. + +function dcontrol() { + if [ $1 = "off" ]; then + eval $(docker-machine env -u) + return + fi + + eval $(docker-machine env $1) +}