Update docs/command output for volume pruning #4497
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In previous versions of the Docker API,
system prune --volumes
andvolume prune
would remove all dangling volumes. With API v1.42, this was changed so that only anonymous volumes would be removed unless the all filter was specified.Some of the docs were updated in #4218, however, there were a couple of places left that didn't make the anonymous vs named volumes distinction clear.
This replaces #4079, which was bitrotted by #4218. See also #4028.
Closes #4079.
- What I did
docker system prune --help
usage text's description of the--volumes
optiondocker system prune --volumes
to be clearer that only anonymous volumes will be removeddocker volume prune --help
usage text, so the overall command description no longer confusingly uses the word "all", given that by default it doesn't remove all volumes- How I did it
See above
- How to verify it
Run
docker system prune --help
,docker system prune --volumes
anddocker volume prune --help
.- Description for the changelog
N/A (since these are only single word edits to usage text/misc command output, I don't think it needs a changelog entry - happy to add one if preferred though).
- A picture of a cute animal (not mandatory but encouraged)