From 39cd60b6eb4ebc2965bf2030e07aecf6602798b2 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Thu, 24 Oct 2024 13:02:11 +0000 Subject: [PATCH] Disable file completion for `--network-alias` 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 31b952a98d..b05bcadd36 100644 --- a/cli/command/container/completion.go +++ b/cli/command/container/completion.go @@ -114,6 +114,7 @@ func addCompletions(cmd *cobra.Command, dockerCli command.Cli) { _ = cmd.RegisterFlagCompletionFunc("mount", completion.NoComplete) _ = cmd.RegisterFlagCompletionFunc("name", completion.NoComplete) _ = cmd.RegisterFlagCompletionFunc("network", completion.NetworkNames(dockerCli)) + _ = cmd.RegisterFlagCompletionFunc("network-alias", completion.NoComplete) _ = cmd.RegisterFlagCompletionFunc("platform", completion.Platforms) _ = cmd.RegisterFlagCompletionFunc("pull", completion.FromList(PullImageAlways, PullImageMissing, PullImageNever)) _ = cmd.RegisterFlagCompletionFunc("restart", completeRestartPolicies)