Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit a2bc745

Browse files
Merge pull request #2291 from thaJeztah/19.03_backport_update_flag_description
[19.03 backport] Update flag description for docker rm -v Upstream-commit: 9b02509a6999f7df20af29fe51f473ec4236a86f Component: cli
2 parents 7b094d6 + 7f9957e commit a2bc745

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

  • components/cli

components/cli/cli/command/container/rm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func NewRmCommand(dockerCli command.Cli) *cobra.Command {
3535
}
3636

3737
flags := cmd.Flags()
38-
flags.BoolVarP(&opts.rmVolumes, "volumes", "v", false, "Remove the volumes associated with the container")
38+
flags.BoolVarP(&opts.rmVolumes, "volumes", "v", false, "Remove anonymous volumes associated with the container")
3939
flags.BoolVarP(&opts.rmLink, "link", "l", false, "Remove the specified link")
4040
flags.BoolVarP(&opts.force, "force", "f", false, "Force the removal of a running container (uses SIGKILL)")
4141
return cmd

components/cli/contrib/completion/fish/docker.fish

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ complete -c docker -f -n '__fish_docker_no_subcommand' -a rm -d 'Remove one or m
439439
complete -c docker -A -f -n '__fish_seen_subcommand_from rm' -s f -l force -d 'Force the removal of a running container (uses SIGKILL)'
440440
complete -c docker -A -f -n '__fish_seen_subcommand_from rm' -l help -d 'Print usage'
441441
complete -c docker -A -f -n '__fish_seen_subcommand_from rm' -s l -l link -d 'Remove the specified link and not the underlying container'
442-
complete -c docker -A -f -n '__fish_seen_subcommand_from rm' -s v -l volumes -d 'Remove the volumes associated with the container'
442+
complete -c docker -A -f -n '__fish_seen_subcommand_from rm' -s v -l volumes -d 'Remove anonymous volumes associated with the container'
443443
complete -c docker -A -f -n '__fish_seen_subcommand_from rm' -a '(__fish_print_docker_containers stopped)' -d "Container"
444444
complete -c docker -A -f -n '__fish_seen_subcommand_from rm' -s f -l force -a '(__fish_print_docker_containers all)' -d "Container"
445445

components/cli/docs/reference/commandline/rm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Options:
2424
-f, --force Force the removal of a running container (uses SIGKILL)
2525
--help Print usage
2626
-l, --link Remove the specified link
27-
-v, --volumes Remove the volumes associated with the container
27+
-v, --volumes Remove anonymous volumes associated with the container
2828
```
2929

3030
## Examples

0 commit comments

Comments
 (0)