fix: remove named volume from volume prune example#24126
Merged
thaJeztah merged 1 commit intoFeb 10, 2026
Conversation
The default docker volume prune only removes anonymous volumes, but the example output included "my-named-vol" which is a named volume. Removed it to match the documented behavior. Fixes docker#24007
✅ Deploy Preview for docsdocker ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
thaJeztah
reviewed
Feb 10, 2026
Comment on lines
59
to
-63
| WARNING! This will remove anonymous local volumes not used by at least one container. | ||
| Are you sure you want to continue? [y/N] y | ||
| Deleted Volumes: | ||
| 07c7bdf3e34ab76d921894c2b834f073721fccfbbcba792aa7648e3a7a664c2e | ||
| my-named-vol |
Member
There was a problem hiding this comment.
This file is generated, so will be overwritten the next time it's re-generated; to fix this, we should have a pull request in the docker/cli repository to fix the source; https://github.com/docker/cli/blob/df016a3a9538efb6d7d6e7c3baf291dbbe28eee0/docs/reference/commandline/volume_prune.md?plain=1#L31
Member
There was a problem hiding this comment.
I opened a PR in the CLI repository;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
The
docker volume prunedocumentation states that by default it only removes anonymous volumes. However, the example output includedmy-named-vol, which is a named volume. Removed it from the example to match the documented behavior.Fixes #24007