diff --git a/cli/command/container/completion.go b/cli/command/container/completion.go index 94e9b50461..34456d40ee 100644 --- a/cli/command/container/completion.go +++ b/cli/command/container/completion.go @@ -216,7 +216,13 @@ func completeIpc(dockerCLI completion.APIClientProvider) func(cmd *cobra.Command names, _ := completion.ContainerNames(dockerCLI, true)(cmd, args, toComplete) return prefixWith("container:", names), cobra.ShellCompDirectiveNoFileComp } - return []string{"container:", "host", "none", "private", "shareable"}, cobra.ShellCompDirectiveNoFileComp + return []string{ + string(container.IPCModeContainer + ":"), + string(container.IPCModeHost), + string(container.IPCModeNone), + string(container.IPCModePrivate), + string(container.IPCModeShareable), + }, cobra.ShellCompDirectiveNoFileComp } }