Skip to content

Conversation

@jo-so
Copy link
Contributor

@jo-so jo-so commented Nov 4, 2025

It is possible to give more than one volume for docker volume rm.


- How to verify it

  1. Create multiple volumes for i in aaa bbb ccc; do docker run -v $i:/foo debian /bin/true; done
  2. Start a Zsh with the new completion file
  3. Type docker volume rm aaa and hit TAB. It should show bbb and ccc instead of no more arguments

- Human readable description for the release notes

It is possible to give more than one volume for `docker volume rm`.

Signed-off-by: Jörg Sommer <[email protected]>
@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@thaJeztah
Copy link
Member

Thanks for contributing!

Note that we moved away from using the manually written zsh completion scripts, and now use completion scripts that are generated from source code. We keep the manually written script in the repository (for now), but may remove those at some point.

To install the generated completion scripts, you can follow the instructions as output by the docker completion command for your shell; in this case, for zsh;

docker completion zsh --help

Which will output something like;

Usage:  docker completion zsh [flags]

Generate the autocompletion script for the zsh shell.

If shell completion is not already enabled in your environment you will need
to enable it.  You can execute the following once:

	echo "autoload -U compinit; compinit" >> ~/.zshrc

To load completions in your current shell session:

	source <(docker completion zsh)

To load completions for every new session, execute once:

#### Linux:

	docker completion zsh > "${fpath[1]}/_docker"

#### macOS:

	docker completion zsh > $(brew --prefix)/share/zsh/site-functions/_docker

You will need to start a new shell for this setup to take effect.

Options:
      --no-descriptions   disable completion descriptions

@thaJeztah thaJeztah added this to the 29.0.0 milestone Nov 4, 2025
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

@thaJeztah thaJeztah merged commit 1686e45 into docker:master Nov 5, 2025
97 of 100 checks passed
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