Created
March 10, 2016 05:12
-
-
Save Adron/8dc06eb398f403225daa to your computer and use it in GitHub Desktop.
A bash function to add to your ~/.bash_profile (or ~/.bashrc or whatever)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gimmedocker() { if [ $1 ]; then | |
docker-machine start $1 | |
docker-machine env $1 | |
eval $(docker-machine env $1) | |
docker ps -a | |
fi } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment