Add dcontrol wrapper for 'docker-machine env'
This commit is contained in:
parent
6ff6b5d6a2
commit
e748d69b91
10
bash/docker-machine.sh
Normal file
10
bash/docker-machine.sh
Normal file
|
@ -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)
|
||||
}
|
Loading…
Reference in New Issue
Block a user