From 3ab5af735abb0372451e3bd38578a2c07f72a887 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Wed, 23 Oct 2024 17:26:56 +0000 Subject: [PATCH] Disable file completion for `--health-*` Signed-off-by: Harald Albers --- cli/command/container/completion.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cli/command/container/completion.go b/cli/command/container/completion.go index 3e7fae3926..7f45162678 100644 --- a/cli/command/container/completion.go +++ b/cli/command/container/completion.go @@ -89,6 +89,12 @@ func addCompletions(cmd *cobra.Command, dockerCli command.Cli) { _ = cmd.RegisterFlagCompletionFunc("env-file", completion.FileNames) _ = cmd.RegisterFlagCompletionFunc("gpus", completion.NoComplete) _ = cmd.RegisterFlagCompletionFunc("group-add", completion.NoComplete) + _ = cmd.RegisterFlagCompletionFunc("health-cmd", completion.NoComplete) + _ = cmd.RegisterFlagCompletionFunc("health-interval", completion.NoComplete) + _ = cmd.RegisterFlagCompletionFunc("health-retries", completion.NoComplete) + _ = cmd.RegisterFlagCompletionFunc("health-start-interval", completion.NoComplete) + _ = cmd.RegisterFlagCompletionFunc("health-start-period", completion.NoComplete) + _ = cmd.RegisterFlagCompletionFunc("health-timeout", completion.NoComplete) _ = cmd.RegisterFlagCompletionFunc("network", completion.NetworkNames(dockerCli)) _ = cmd.RegisterFlagCompletionFunc("platform", completion.Platforms) _ = cmd.RegisterFlagCompletionFunc("pull", completion.FromList(PullImageAlways, PullImageMissing, PullImageNever))