Skip to content

Instantly share code, notes, and snippets.

@Machy8
Last active April 27, 2019 15:28
Show Gist options
  • Save Machy8/3f8a2eca8ba575ad72cbed6181fc3bb1 to your computer and use it in GitHub Desktop.
Save Machy8/3f8a2eca8ba575ad72cbed6181fc3bb1 to your computer and use it in GitHub Desktop.
Aliases for daily work with Docker (you may need to add sudo into "docker-compose")
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