Skip to content

Instantly share code, notes, and snippets.

@Adron

Adron/gimmedocker.sh

Created Mar 10, 2016
Embed
What would you like to do?
A bash function to add to your ~/.bash_profile (or ~/.bashrc or whatever)
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