Skip to content

Instantly share code, notes, and snippets.

@Kabongosalomon
Created March 2, 2022 16:21
Show Gist options
  • Save Kabongosalomon/54e03dd2383d947d08d65dd74499597d to your computer and use it in GitHub Desktop.
Save Kabongosalomon/54e03dd2383d947d08d65dd74499597d to your computer and use it in GitHub Desktop.
Aliases for daily work with Docker (you may need to add sudo into "docker-compose") this need to be added in .bashrc
alias dsa='docker stop $(docker ps -a -q)' # Docker stop all
alias dc='docker-compose'
alias dcu='dc up'
alias dcuf='dc up --force-recreate'
alias dcd='dc down'
alias dcs='dc start'
alias dcr='dc restart'
alias dcst='dc stop'
alias dcb='dc build' # Docker compose build
alias dil='docker image ls' # Docker image list
alias dcl='docker container ls' # Docker container list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment