Created
May 27, 2019 11:49
-
-
Save danielpereirabp/351b2d48e20e27124fedc628b7a33d7d to your computer and use it in GitHub Desktop.
Docker Alias Functions
This file contains hidden or 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
function git () { | |
(docker run -ti --rm -v ${HOME}:/root -v $(pwd):/git alpine/git "$@") | |
} | |
function composer () { | |
(docker run -ti --rm -v $(pwd):/app composer "$@") | |
} | |
function php56 () { | |
(docker run -ti --rm -v $(pwd):/app php:5.6-cli "$@") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment