Specifically: RUN --mount=type=cache,target=/root/mycache ....
How do I clean up (delete) this cache mount when I want to trigger a fresh build?
I would assume there would be a command similar to “docker volume rm” but the cache mounts don’t
appear in docker volume ls.
I used a different filter to target a specific id: docker builder prune --filter id=......
Is there a way to give the cache a name so that I can more easily target it? The documentation says that there is an optional ID I can pass but when I do:
RUN --mount=id=my-project-cache,type=cache,target=/path/to/dir nothing changes, that is when using docker system df -v the cache id is still a random string.