diff options
author | Sebastiaan van Stijn <thaJeztah@users.noreply.github.com> | 2022-10-05 19:34:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-05 19:34:47 +0200 |
commit | 49940ab5eefa0ad6be501b03604279c3bbd6aaf7 (patch) | |
tree | dff4a90a6588c76d1125fcc397aa42751b50f897 /docs | |
parent | a8b20ed10525b013ad54f5b7a7ce1482678deb37 (diff) | |
parent | 618f26ccbc3b5c314680dae4b09f5d13f9c02570 (diff) | |
download | docker-49940ab5eefa0ad6be501b03604279c3bbd6aaf7.tar.gz |
Merge pull request #44216 from cpuguy83/volume_unnamed_label
Volume prune: only prune anonymous volumes by default
Diffstat (limited to 'docs')
-rw-r--r-- | docs/api/v1.42.yaml | 1 | ||||
-rw-r--r-- | docs/api/version-history.md | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/docs/api/v1.42.yaml b/docs/api/v1.42.yaml index 4ae17c3251..cda2827619 100644 --- a/docs/api/v1.42.yaml +++ b/docs/api/v1.42.yaml @@ -9699,6 +9699,7 @@ paths: Available filters: - `label` (`label=<key>`, `label=<key>=<value>`, `label!=<key>`, or `label!=<key>=<value>`) Prune volumes with (or without, in case `label!=...` is used) the specified labels. + - `all` (`all=true`) - Consider all (local) volumes for pruning and not just anonymous volumes. type: "string" responses: 200: diff --git a/docs/api/version-history.md b/docs/api/version-history.md index fb1db32f9c..573c80b77a 100644 --- a/docs/api/version-history.md +++ b/docs/api/version-history.md @@ -125,6 +125,7 @@ keywords: "API, Docker, rcli, REST, documentation" is set with a non-matching mount Type. * `POST /containers/{id}/exec` now accepts an optional `ConsoleSize` parameter. It allows to set the console size of the executed process immediately when it's created. +* `POST /volumes/prune` will now only prune "anonymous" volumes (volumes which were not given a name) by default. A new filter parameter `all` can be set to a truth-y value (`true`, `1`) to get the old behavior. ## v1.41 API changes |