Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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