From 7c22a4d86c917bf063f878c3130933892e8b83a5 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Sat, 12 Nov 2016 10:12:47 -0800 Subject: [PATCH] Add bash completion for `docker build --cache-from` Signed-off-by: Harald Albers --- contrib/completion/bash/docker | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/completion/bash/docker b/contrib/completion/bash/docker index 4e0314431e..fe852a99c6 100644 --- a/contrib/completion/bash/docker +++ b/contrib/completion/bash/docker @@ -1901,6 +1901,7 @@ _docker_image() { _docker_image_build() { local options_with_args=" --build-arg + --cache-from --cgroup-parent --cpuset-cpus --cpuset-mems @@ -1936,6 +1937,10 @@ _docker_image_build() { __docker_nospace return ;; + --cache-from) + __docker_complete_image_repos_and_tags + return + ;; --file|-f) _filedir return