Skip to content

[Feature] Ability to inspect specific cache mounts #1922

@anthonyalayo

Description

@anthonyalayo

Description

Following up from: #931

  1. Why can't we have something like, docker buildx du --filter /var/cache/apt? It would allow direct inspecting/clearing of cache mounts. I'm writing some logic to allow deleting of a particular build cache mount if desired. I'm not able to have a clear script for this because of the current support.

  2. Is it also possible to add more details with docker buildx du --verbose --filter type=exec.cachemount in order to know which image that particular cache mount is associated with? I don't even understand why there is an "id" field configurable if you can't key off of it in any way. I just changed one of the mounts for a java program's .m2 directory and all I get is 3 entries here and none of them discernable.

~ ❯ docker buildx du --verbose --filter type=exec.cachemount | grep -B 6 -F "/root/.m2"     06:28:51 PM
ID:		qd98bx4cmfe7de8fln5nx65ut
Created at:	2023-06-29 21:09:39.551389639 +0000 UTC
Mutable:	true
Reclaimable:	true
Shared:		false
Size:		19.31MB
Description:	cached mount /root/.m2 from exec /bin/sh -c ./mvnw test
--
ID:		glydhkz1vo25rado1zoq7ajbs
Created at:	2023-06-29 21:35:45.00107996 +0000 UTC
Mutable:	true
Reclaimable:	true
Shared:		false
Size:		1.897MB
Description:	cached mount /root/.m2 from exec /bin/sh -c ./mvnw dependency:resolve-plugins
--
ID:		2iq3u28y28xlsagy1esqkpfu6
Created at:	2023-06-29 22:30:07.203308554 +0000 UTC
Mutable:	true
Reclaimable:	false
Shared:		false
Size:		0B
Description:	cached mount /root/.m2 from exec /bin/sh -c ./mvnw dependency:resolve-plugins

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions