Skip to content

Conversation

@lacatoire
Copy link
Contributor

@lacatoire lacatoire commented Feb 10, 2026

Description

The docker volume prune documentation states that by default it only removes anonymous volumes. However, the example output included my-named-vol, which is a named volume. Removed it from the example to match the documented behavior.

Fixes #24007

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
@netlify
Copy link

netlify bot commented Feb 10, 2026

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 25fae16
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/698b607aa9171f00089ee691
😎 Deploy Preview https://deploy-preview-24126--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions bot added the area/cli Relates to the CLI client label 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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I opened a PR in the CLI repository;

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@thaJeztah thaJeztah merged commit 334b8f3 into docker:main Feb 10, 2026
23 of 24 checks passed
@lacatoire lacatoire deleted the fix/issue-24007-volume-prune-example branch February 10, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cli Relates to the CLI client

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistency between example and command description

2 participants