Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docs/command output for volume prune to specify when named volumes will be deleted #4079

Closed
wants to merge 2 commits into from

Commits on Mar 9, 2023

  1. Document default volume prune behavior

    In previous versions of the Docker API, `system prune --volumes` and
    `volume 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. Update the docs to reflect this.
    
    Signed-off-by: Dalton Miner <dminer@datto.com>
    dwminer committed Mar 9, 2023
    Configuration menu
    Copy the full SHA
    c8c68d4 View commit details
    Browse the repository at this point in the history
  2. volume/prune.go: Indicate if rm'ing named volumes

    Currently, the output of the `volume prune` command is potentially confusing,
    because only anonymous dangling volumes are removed by default. Update
    help text and warning output accordingly.
    
    Signed-off-by: Dalton <dminer@datto.com>
    dwminer committed Mar 9, 2023
    Configuration menu
    Copy the full SHA
    5486e50 View commit details
    Browse the repository at this point in the history