#!/bin/bash # remove exited containers: docker ps --filter status=dead --filter status=exited -aq | xargs -r docker rm -v # remove unused images docker image prune -a -f # remove unused volumes: docker volume prune -a -f # remove buildx cache docker buildx prune -f # show results docker system df