diff --git a/cli/command/container/completion.go b/cli/command/container/completion.go index e3c0ae970824..48c0159d0325 100644 --- a/cli/command/container/completion.go +++ b/cli/command/container/completion.go @@ -107,7 +107,7 @@ var restartPolicies = []string{ } // addCompletions adds the completions that `run` and `create` have in common. -func addCompletions(cmd *cobra.Command, dockerCli command.Cli) { +func addCompletions(cmd *cobra.Command, dockerCLI completion.APIClientProvider) { _ = cmd.RegisterFlagCompletionFunc("add-host", completion.NoComplete) _ = cmd.RegisterFlagCompletionFunc("annotation", completion.NoComplete) _ = cmd.RegisterFlagCompletionFunc("attach", completion.FromList("stderr", "stdin", "stdout"))