From bfa43d2989903a6b6d02940351be3cafef4cecfb Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Thu, 25 Apr 2019 22:55:21 +0200 Subject: [PATCH] Remove deprecated storage drivers from bash completion Signed-off-by: Harald Albers --- contrib/completion/bash/docker | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index c41f00a573..e5904531fe 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -2617,36 +2617,15 @@ _docker_daemon() { return ;; --storage-driver|-s) - COMPREPLY=( $( compgen -W "aufs btrfs devicemapper overlay overlay2 vfs zfs" -- "$(echo "$cur" | tr '[:upper:]' '[:lower:]')" ) ) + COMPREPLY=( $( compgen -W "aufs btrfs overlay2 vfs zfs" -- "$(echo "$cur" | tr '[:upper:]' '[:lower:]')" ) ) return ;; --storage-opt) local btrfs_options="btrfs.min_space" - local devicemapper_options=" - dm.basesize - dm.blkdiscard - dm.blocksize - dm.directlvm_device - dm.fs - dm.libdm_log_level - dm.loopdatasize - dm.loopmetadatasize - dm.min_free_space - dm.mkfsarg - dm.mountopt - dm.override_udev_sync_check - dm.thinpooldev - dm.thinp_autoextend_percent - dm.thinp_autoextend_threshold - dm.thinp_metapercent - dm.thinp_percent - dm.use_deferred_deletion - dm.use_deferred_removal - " local overlay2_options="overlay2.size" local zfs_options="zfs.fsname" - local all_options="$btrfs_options $devicemapper_options $overlay2_options $zfs_options" + local all_options="$btrfs_options $overlay2_options $zfs_options" case $(__docker_value_of_option '--storage-driver|-s') in '') @@ -2655,9 +2634,6 @@ _docker_daemon() { btrfs) COMPREPLY=( $( compgen -W "$btrfs_options" -S = -- "$cur" ) ) ;; - devicemapper) - COMPREPLY=( $( compgen -W "$devicemapper_options" -S = -- "$cur" ) ) - ;; overlay2) COMPREPLY=( $( compgen -W "$overlay2_options" -S = -- "$cur" ) ) ;;