Skip to content

Instantly share code, notes, and snippets.

@madeinnordeste
Created September 14, 2020 17:24
Show Gist options
  • Save madeinnordeste/91abfb09657e1d1a267fdce8d9e0b08d to your computer and use it in GitHub Desktop.
Save madeinnordeste/91abfb09657e1d1a267fdce8d9e0b08d to your computer and use it in GitHub Desktop.
# kill containers
function docker-kill-containers(){
docker kill $(docker ps -q)
}
# remove stoped containers
function docker-remove-containers(){
docker rm $(docker ps -a -q)
}
# remove images
function docker-remove-images(){
docker rmi $(docker images -q)
}
# prune
function docker-prune(){
docker system prune -a
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment