diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index c165c6c7ec..f871dbb3b8 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -4244,6 +4244,10 @@ _docker_volume_inspect() { esac } +_docker_volume_list() { + _docker_volume_ls +} + _docker_volume_ls() { local key=$(__docker_map_key_of_current_option '--filter|-f') case "$key" in @@ -4287,6 +4291,10 @@ _docker_volume_prune() { esac } +_docker_volume_remove() { + _docker_volume_rm +} + _docker_volume_rm() { case "$cur" in -*) @@ -4306,7 +4314,11 @@ _docker_volume() { prune rm " - __docker_subcommands "$subcommands" && return + local aliases=" + list + remove + " + __docker_subcommands "$subcommands $aliases" && return case "$cur" in -*)