Skip to content

Instantly share code, notes, and snippets.

@danielpereirabp
Created May 27, 2019 11:49
Show Gist options
  • Save danielpereirabp/351b2d48e20e27124fedc628b7a33d7d to your computer and use it in GitHub Desktop.
Save danielpereirabp/351b2d48e20e27124fedc628b7a33d7d to your computer and use it in GitHub Desktop.
Docker Alias Functions
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