bash completion for docker daemon --storage-opt btrfs.min_space

Signed-off-by: Harald Albers <github@albersweb.de>
(cherry picked from commit f693b99870)
This commit is contained in:
Harald Albers 2016-06-21 11:06:08 +02:00 committed by Tibor Vass
parent 0afeae16de
commit b23562ea20

View file

@ -946,6 +946,7 @@ _docker_daemon() {
return
;;
--storage-opt)
local btrfs_options="btrfs.min_space"
local devicemapper_options="
dm.basesize
dm.blkdiscard
@ -965,7 +966,10 @@ _docker_daemon() {
case $(__docker_value_of_option '--storage-driver|-s') in
'')
COMPREPLY=( $( compgen -W "$devicemapper_options $zfs_options" -S = -- "$cur" ) )
COMPREPLY=( $( compgen -W "$btrfs_options $devicemapper_options $zfs_options" -S = -- "$cur" ) )
;;
btrfs)
COMPREPLY=( $( compgen -W "$btrfs_options" -S = -- "$cur" ) )
;;
devicemapper)
COMPREPLY=( $( compgen -W "$devicemapper_options" -S = -- "$cur" ) )