From f004bb9cf91daa0488d4f20a76771411a515b753 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Thu, 9 Feb 2017 14:41:50 +0100 Subject: [PATCH] Fix bash completion for `start --checkpoint` Signed-off-by: Harald Albers --- contrib/completion/bash/docker | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index 644f811ec4..9ccb2c0f0e 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -1752,12 +1752,12 @@ _docker_container_start() { case "$prev" in --checkpoint) - if [ __docker_is_experimental ] ; then + if [ __docker_daemon_is_experimental ] ; then return fi ;; --checkpoint-dir) - if [ __docker_is_experimental ] ; then + if [ __docker_daemon_is_experimental ] ; then _filedir -d return fi @@ -1767,7 +1767,7 @@ _docker_container_start() { case "$cur" in -*) local options="--attach -a --detach-keys --help --interactive -i" - __docker_is_experimental && options+=" --checkpoint --checkpoint-dir" + __docker_daemon_is_experimental && options+=" --checkpoint --checkpoint-dir" COMPREPLY=( $( compgen -W "$options" -- "$cur" ) ) ;; *)