Created
May 11, 2016 01:06
-
-
Save justinrolston/28af371a87d614375b956ed98214f63d to your computer and use it in GitHub Desktop.
docker function in bash
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
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