#linux #homelab Removing Stuff
- docker container prune remove all stopped containers
- docker image prune remove all unused (dangling) images
- docker image prune -a remove all unused images (including unused tags)
- docker compose down stop and remove stopped containers
- docker compose down --rmi local remove all images defined in the docker compose.yml file
- docker system prune -a -f remove unused containers, networks, images, and volumes
Other
Useful aliases:- alias dps="docker ps --format 'table {{.ID}} \t {{.Names}} \t {{.Status}}'"