Skip to content

Conversation

@thaJeztah
Copy link
Member


The example shows that the --volumes option is used, which in current versions of docker only removes "anonymous" volumes, but preserves named volume:

$ docker system prune -a --volumes
...
        - all anonymous volumes not used by at least one container
...

But the example output showed that a named volume ("named-vol") was deleted;

Deleted Volumes:
named-vol

- What I did

- How I did it

- How to verify it

- Human readable description for the release notes

- A picture of a cute animal (not mandatory but encouraged)

The example shows that the `--volumes` option is used, which in current
versions of docker only removes "anonymous" volumes, but preserves named
volume:

    $ docker system prune -a --volumes
    ...
            - all anonymous volumes not used by at least one container
    ...

But the example output showed that a named volume ("named-vol") was
deleted;

    Deleted Volumes:
    named-vol

Co-authored-by: Roberto Villarreal <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
(cherry picked from commit bf13010)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah added this to the 28.4.0 milestone Aug 15, 2025
@thaJeztah thaJeztah requested a review from a team as a code owner August 15, 2025 17:15
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@austinvazquez austinvazquez merged commit 5d327e8 into docker:28.x Aug 16, 2025
97 checks passed
@thaJeztah thaJeztah deleted the 28.x_backport_fix_prune_example branch August 16, 2025 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants