Skip to content

Make docker buildx du pass the until filter as a DiskUsage age limit #4220

Description

@pjwj

Contributing guidelines

I've found a bug and checked that ...

  • ... the documentation does not mention anything about my problem
  • ... there are no open or closed issues that are related to my problem

Description

docker buildx du --filter until=168h appears to ignore the until filter and returns the same records as unfiltered du.

On my Docker driver builder, both commands returned 458 records, including records last used more than 168 hours ago. A regular filter such as type=source.local does filter the results.

BuildKit added age-limit support to its DiskUsage API in moby/buildkit#5455. #1252 fixed similar issue for until handling for prune; this issue is about du.

Expected behavior

du --filter until=168h should return only cache records whose last-used time is at least 168 hours ago.

Environment

  • Docker Engine: 29.9.0
  • Buildx: v0.38.0
  • BuildKit: v0.34.0
  • Driver: docker

References

Expected behaviour

docker buildx du --filter until=168h should return only cache records whose last-used time is at least 168 hours ago.

Actual behaviour

docker buildx du --filter until=168h appears to ignore the until filter and returns the same records as unfiltered du.

Buildx version

github.com/docker/buildx v0.38.0 0dbe87f

Docker info


Builders list

NAME/NODE     DRIVER/ENDPOINT   STATUS    BUILDKIT   PLATFORMS
default*      docker
 \_ default    \_ default       running   v0.34.0    linux/amd64 (+4)

Configuration

docker buildx du --filter until=168h
docker buildx du

Build logs


Additional info

No response

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions