Skip to content

Instantly share code, notes, and snippets.

@Adron
Created March 10, 2016 05:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Adron/8dc06eb398f403225daa to your computer and use it in GitHub Desktop.
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)
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