Created
March 2, 2022 16:21
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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