Also:build cache · buildx · buildkit · docker builder prune · no space left on device
The surprise:docker image prune -af freed almost nothing, yet /var/lib/docker was still 40 GB.
Why: BuildKit’s build cache is separate from images. Only docker builder prune (or docker system prune) removes it. Check with Docker: Show disk used by Docker and look at the Build Cache row.