Skip to content

docs: fix output example for docker system prune#6270

Merged
austinvazquez merged 1 commit intodocker:masterfrom
thaJeztah:fix_prune_example
Aug 16, 2025
Merged

docs: fix output example for docker system prune#6270
austinvazquez merged 1 commit intodocker:masterfrom
thaJeztah:fix_prune_example

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 <rrjjvv@yahoo.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@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 ccc1c65 into docker:master Aug 16, 2025
123 of 124 checks passed
@thaJeztah thaJeztah deleted the 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.

System Prune Docs Misleading About Named Volume Removal

4 participants