Skip to content

Instantly share code, notes, and snippets.

@justinrolston
Created May 11, 2016 01:06
Show Gist options
  • Save justinrolston/28af371a87d614375b956ed98214f63d to your computer and use it in GitHub Desktop.
Save justinrolston/28af371a87d614375b956ed98214f63d to your computer and use it in GitHub Desktop.
docker function in bash
ruby22 () {
eval $(docker-machine env default)
docker run -it --rm \
-v "$PWD":/data \
-w /data \
ruby:2.2-alpine ruby $*
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment