Skip to content

Instantly share code, notes, and snippets.

@maxleiko
Last active July 17, 2019 07:50
Show Gist options
  • Save maxleiko/8aa72eb8361e0f6d851396f9540d5f10 to your computer and use it in GitHub Desktop.
Save maxleiko/8aa72eb8361e0f6d851396f9540d5f10 to your computer and use it in GitHub Desktop.
Copy/past this in your .bashrc / .zshrc / .whateverrc
alias dim="docker images"
alias dps="docker ps"
alias drm="docker rm"
alias drmi="docker rmi"
# Deletes all docker containers (if stopped, otherwise use -f)
function drma() {
drm $1 $(dps -aq)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment