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 pruning #4497

Merged
merged 1 commit into from
Aug 17, 2023

Conversation

edmorley
Copy link
Contributor

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.

Some of the docs were updated in #4218, however, there were a couple of places left that didn't make the anonymous vs named volumes distinction clear.

This replaces #4079, which was bitrotted by #4218. See also #4028.

Closes #4079.

- What I did

  • Updated the docker system prune --help usage text's description of the --volumes option
  • Updated the command log output for docker system prune --volumes to be clearer that only anonymous volumes will be removed
  • Updated the docker volume prune --help usage text, so the overall command description no longer confusingly uses the word "all", given that by default it doesn't remove all volumes

- How I did it
See above

- How to verify it
Run docker system prune --help, docker system prune --volumes and docker volume prune --help.

- Description for the changelog
N/A (since these are only single word edits to usage text/misc command output, I don't think it needs a changelog entry - happy to add one if preferred though).

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

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.

Some of the docs were updated in docker#4218, however, there were a couple of places
left that didn't make the anonymous vs named volumes distinction clear.

This replaces docker#4079, which was bitrotted by docker#4218. See also docker#4028.

Closes docker#4079.

Signed-off-by: Ed Morley <501702+edmorley@users.noreply.github.com>
@edmorley
Copy link
Contributor Author

The ctn CI job failed, but the failure seems unrelated to the changes in this PR? Is it a flaky test?
https://github.com/docker/cli/actions/runs/5841658109/job/15953254996#step:4:386

@codecov-commenter
Copy link

codecov-commenter commented Aug 17, 2023

Codecov Report

Merging #4497 (6e2e92d) into master (9bd5ec5) will increase coverage by 0.41%.
Report is 2 commits behind head on master.
The diff coverage is 66.66%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4497      +/-   ##
==========================================
+ Coverage   58.97%   59.39%   +0.41%     
==========================================
  Files         286      288       +2     
  Lines       24773    24780       +7     
==========================================
+ Hits        14611    14717     +106     
+ Misses       9275     9176      -99     
  Partials      887      887              

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.

6 participants