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