Add bash completion for docker build --add-host

Signed-off-by: Harald Albers <github@albersweb.de>
Upstream-commit: a584bd3b1a
Component: cli
This commit is contained in:
Harald Albers
2017-06-02 00:10:56 +00:00
committed by Tibor Vass
parent d9e38bf671
commit 6d2c16f8fd
@@ -2155,6 +2155,7 @@ _docker_image() {
_docker_image_build() {
local options_with_args="
--add-host
--build-arg
--cache-from
--cgroup-parent
@@ -2191,6 +2192,14 @@ _docker_image_build() {
local all_options="$options_with_args $boolean_options"
case "$prev" in
--add-host)
case "$cur" in
*:)
__docker_complete_resolved_hostname
return
;;
esac
;;
--build-arg)
COMPREPLY=( $( compgen -e -- "$cur" ) )
__docker_nospace