#
Docker
In
#
Local containers, images & volumes
#
remove all stopped containers
docker ps -a -q -f status=exited | xargs docker rm
#
remove all dangling images
docker images -f "dangling=true" -q | xargs docker rmi
#
remove unused volumes
Please be extra cautious, since you could loose precious data!
docker volume prune
#
clear docker build cache
docker buildx -f
#
show used filesystem size of container
docker ps --size
or
docker system df --verbose
#
Docker build cache
#
remove docker build images
docker builder prune
and/or
docker builderx prune