From ff9c6846b10ab7a169af9e5a876a5437d8692e3f Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Thu, 24 Oct 2024 13:34:38 +0000 Subject: [PATCH] Disable file completion for `--security-opt` 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 20285212de..3b3f07739a 100644 --- a/cli/command/container/completion.go +++ b/cli/command/container/completion.go @@ -123,6 +123,7 @@ func addCompletions(cmd *cobra.Command, dockerCli command.Cli) { _ = cmd.RegisterFlagCompletionFunc("pull", completion.FromList(PullImageAlways, PullImageMissing, PullImageNever)) _ = cmd.RegisterFlagCompletionFunc("restart", completeRestartPolicies) _ = cmd.RegisterFlagCompletionFunc("runtime", completion.NoComplete) + _ = cmd.RegisterFlagCompletionFunc("security-opt", completion.NoComplete) // TODO refine _ = cmd.RegisterFlagCompletionFunc("stop-signal", completeSignals) _ = cmd.RegisterFlagCompletionFunc("volumes-from", completion.ContainerNames(dockerCli, true)) }