summaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorPaweł Gronowski <pawel.gronowski@docker.com>2023-03-16 14:37:24 +0100
committerPaweł Gronowski <pawel.gronowski@docker.com>2023-04-20 21:20:32 +0200
commit54a125f67703ab51ed8a004b625439dfafa7aa6c (patch)
treed9bbad53680e1476f17380fd87d552d95f9eda20 /api
parent5745ba6a8e0d8e7a5cadd7a66655c6ada58142fa (diff)
downloaddocker-54a125f67703ab51ed8a004b625439dfafa7aa6c.tar.gz
builder-next/prune: Handle "until" filter timestamps
Fixes `docker system prune --filter until=<timestamp>`. `docker system prune` claims to support "until" filter for timestamps, but it doesn't work because builder "until" filter only supports duration. Use the same filter parsing logic and then convert the timestamp to a relative "keep-duration" supported by buildkit. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
Diffstat (limited to 'api')
-rw-r--r--api/swagger.yaml2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/swagger.yaml b/api/swagger.yaml
index 84a98d042e..8122b0f41d 100644
--- a/api/swagger.yaml
+++ b/api/swagger.yaml
@@ -8226,7 +8226,7 @@ paths:
Available filters:
- - `until=<duration>`: duration relative to daemon's time, during which build cache was not used, in Go's duration format (e.g., '24h')
+ - `until=<timestamp>` remove cache older than `<timestamp>`. The `<timestamp>` can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed relative to the daemon's local time.
- `id=<id>`
- `parent=<id>`
- `type=<string>`