diff --git a/cli/command/container/completion.go b/cli/command/container/completion.go index 8cdd3f9b5d..c0cc0fb19e 100644 --- a/cli/command/container/completion.go +++ b/cli/command/container/completion.go @@ -135,6 +135,7 @@ func addCompletions(cmd *cobra.Command, dockerCli command.Cli) { _ = cmd.RegisterFlagCompletionFunc("uts", completion.NoComplete) _ = cmd.RegisterFlagCompletionFunc("volume-driver", completion.FromList("local")) _ = cmd.RegisterFlagCompletionFunc("volumes-from", completion.ContainerNames(dockerCli, true)) + _ = cmd.RegisterFlagCompletionFunc("workdir", completion.NoComplete) } // completeIpc implements shell completion for the `--ipc` option of `run` and `create`.