mirror of https://github.com/docker/cli.git
Add bash completion for `dockerd --storage-opt overlay2.size`
This adds bash completion for - https://github.com/docker/cli/pull/215 - https://github.com/moby/moby/pull/32977 Signed-off-by: Harald Albers <github@albersweb.de>
This commit is contained in:
parent
85b41c3e71
commit
a4b1769bb6
|
@ -2094,11 +2094,14 @@ _docker_daemon() {
|
||||||
dm.use_deferred_deletion
|
dm.use_deferred_deletion
|
||||||
dm.use_deferred_removal
|
dm.use_deferred_removal
|
||||||
"
|
"
|
||||||
|
local overlay2_options="overlay2.size"
|
||||||
local zfs_options="zfs.fsname"
|
local zfs_options="zfs.fsname"
|
||||||
|
|
||||||
|
local all_options="$btrfs_options $devicemapper_options $overlay2_options $zfs_options"
|
||||||
|
|
||||||
case $(__docker_value_of_option '--storage-driver|-s') in
|
case $(__docker_value_of_option '--storage-driver|-s') in
|
||||||
'')
|
'')
|
||||||
COMPREPLY=( $( compgen -W "$btrfs_options $devicemapper_options $zfs_options" -S = -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "$all_options" -S = -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
btrfs)
|
btrfs)
|
||||||
COMPREPLY=( $( compgen -W "$btrfs_options" -S = -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "$btrfs_options" -S = -- "$cur" ) )
|
||||||
|
@ -2106,6 +2109,9 @@ _docker_daemon() {
|
||||||
devicemapper)
|
devicemapper)
|
||||||
COMPREPLY=( $( compgen -W "$devicemapper_options" -S = -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "$devicemapper_options" -S = -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
|
overlay2)
|
||||||
|
COMPREPLY=( $( compgen -W "$overlay2_options" -S = -- "$cur" ) )
|
||||||
|
;;
|
||||||
zfs)
|
zfs)
|
||||||
COMPREPLY=( $( compgen -W "$zfs_options" -S = -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "$zfs_options" -S = -- "$cur" ) )
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue