diff --git a/cli/command/container/completion.go b/cli/command/container/completion.go index 351d26f265..65818af97a 100644 --- a/cli/command/container/completion.go +++ b/cli/command/container/completion.go @@ -58,6 +58,7 @@ var restartPolicies = []string{ // addCompletions adds the completions that `run` and `create` have in common. func addCompletions(cmd *cobra.Command, dockerCli command.Cli) { _ = cmd.RegisterFlagCompletionFunc("add-host", completion.NoComplete) + _ = cmd.RegisterFlagCompletionFunc("annotation", completion.NoComplete) _ = cmd.RegisterFlagCompletionFunc("cap-add", completeLinuxCapabilityNames) _ = cmd.RegisterFlagCompletionFunc("cap-drop", completeLinuxCapabilityNames) _ = cmd.RegisterFlagCompletionFunc("env", completion.EnvVarNames)