You could try this in order to clean up the build #cache: docker builder prune --filter type=exec.cachemount.
Single command to clear #docker #containers and cache - clearDockerCache.sh. ... rm $(docker ps -a -q). # Delete all images. docker rmi $(docker images -q)
https://ibmimedia.com/explore/clear-docker-cache