Skip to content

Instantly share code, notes, and snippets.

@djravine
Created April 17, 2020 02:56
Show Gist options
  • Save djravine/25d3e22c823517642e05988fcd7bd078 to your computer and use it in GitHub Desktop.
Save djravine/25d3e22c823517642e05988fcd7bd078 to your computer and use it in GitHub Desktop.
bash_aliases for Docker
# DOCKER - System
alias d.df='docker system df'
alias d.prune='docker system prune'
alias d.info='docker system info'
# DOCKER - Shortcuts
alias d.att='docker attach'
alias d.diff='docker diff'
alias d.eb='dexbash'
alias d.img='docker images'
alias d.ins='docker inspect'
alias d.exec='docker exec $@'
alias d.logs='docker logs $@'
alias d.l='d.logs $@'
alias d.ps='docker ps'
alias d.rm='docker rm'
alias d.rmi='docker rmi'
alias d.run='docker run'
alias d.start='docker start $@'
alias d.stop='docker stop $@'
alias d.restart='docker restart $@'
alias dc.build='docker-compose build'
alias dc.logs='docker-compose logs $@'
alias dc.up='docker-compose up'
alias dc.down='docker-compose down'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment