From 14038a915db9fd844ea49add07c675e9f4a18909 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Thu, 24 Oct 2024 18:34:31 +0000 Subject: [PATCH] Disable file completion for `--dns*` Signed-off-by: Harald Albers --- cli/command/container/completion.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/command/container/completion.go b/cli/command/container/completion.go index de83afc054..377072d01c 100644 --- a/cli/command/container/completion.go +++ b/cli/command/container/completion.go @@ -79,6 +79,9 @@ func addCompletions(cmd *cobra.Command, dockerCli command.Cli) { _ = cmd.RegisterFlagCompletionFunc("device-read-iops", completion.NoComplete) _ = cmd.RegisterFlagCompletionFunc("device-write-bps", completion.NoComplete) _ = cmd.RegisterFlagCompletionFunc("device-write-iops", completion.NoComplete) + _ = cmd.RegisterFlagCompletionFunc("dns", completion.NoComplete) + _ = cmd.RegisterFlagCompletionFunc("dns-option", completion.NoComplete) + _ = cmd.RegisterFlagCompletionFunc("dns-search", completion.NoComplete) _ = cmd.RegisterFlagCompletionFunc("env", completion.EnvVarNames) _ = cmd.RegisterFlagCompletionFunc("env-file", completion.FileNames) _ = cmd.RegisterFlagCompletionFunc("network", completion.NetworkNames(dockerCli))