bash completion for new `docker network create` options
@@ -1052,6 +1052,13 @@ _docker_network_connect() {
_docker_network_create() {
case "$prev" in
+ --aux-address|--gateway|--ip-range|--opt|-o|--subnet)
+ return
+ ;;
+ --ipam-driver)
+ COMPREPLY=( $( compgen -W "default" -- "$cur" ) )
+ return
+ ;;
--driver|-d)
# no need to suggest drivers that allow one instance only
# (host, null)
@@ -1062,7 +1069,7 @@ _docker_network_create() {
case "$cur" in
-*)
- COMPREPLY=( $( compgen -W "--driver -d --help" -- "$cur" ) )
+ COMPREPLY=( $( compgen -W "--aux-address --driver -d --gateway --help --ip-range --ipam-driver --opt -o --subnet" -- "$cur" ) )
;;
esac
}
