Skip to content

Instantly share code, notes, and snippets.

@walmsles
Created January 20, 2017 00:53
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 walmsles/a0dc2808b24a47fb47ca413b59f65825 to your computer and use it in GitHub Desktop.
Save walmsles/a0dc2808b24a47fb47ca413b59f65825 to your computer and use it in GitHub Desktop.
Docker shell alias commands .... since I am lazy
# Docker environment
function dbash()
{
docker exec -it $1 bash
}
alias dockbuild='docker build . -f $1 -t $2'
alias dex='docker exec -it '
alias dps='docker ps '
alias dup='docker-compose up -d'
alias drm='docker rm -f'
alias ddown='docker-compose stop&&docker-compose rm -f'
alias dbounce='ddown && dup'
alias dim='docker images'
alias dimrm='docker rmi -f'
alias dstop='docker stop'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment