From 93af729f5341c7c530392062e6d378eeb4b9f9dd Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Thu, 24 Oct 2024 11:36:15 +0000 Subject: [PATCH] Disable file completion for `--link-local-ip` Signed-off-by: Harald Albers --- cli/command/container/completion.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/command/container/completion.go b/cli/command/container/completion.go index 861076f985..c75bf1d20b 100644 --- a/cli/command/container/completion.go +++ b/cli/command/container/completion.go @@ -103,6 +103,7 @@ func addCompletions(cmd *cobra.Command, dockerCli command.Cli) { _ = cmd.RegisterFlagCompletionFunc("kernel-memory", completion.NoComplete) _ = cmd.RegisterFlagCompletionFunc("label", completion.NoComplete) _ = cmd.RegisterFlagCompletionFunc("link", completeLink(dockerCli)) + _ = cmd.RegisterFlagCompletionFunc("link-local-ip", completion.NoComplete) _ = cmd.RegisterFlagCompletionFunc("network", completion.NetworkNames(dockerCli)) _ = cmd.RegisterFlagCompletionFunc("platform", completion.Platforms) _ = cmd.RegisterFlagCompletionFunc("pull", completion.FromList(PullImageAlways, PullImageMissing, PullImageNever))