From 2915749279e48e262117199405f514df078dc5a4 Mon Sep 17 00:00:00 2001 From: Harald Albers Date: Wed, 30 Oct 2024 14:55:19 +0000 Subject: [PATCH] Add completion for `--uts` Signed-off-by: Harald Albers --- cli/command/container/completion.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/command/container/completion.go b/cli/command/container/completion.go index 5538017f96ad..8cc7b71de34d 100644 --- a/cli/command/container/completion.go +++ b/cli/command/container/completion.go @@ -134,6 +134,7 @@ func addCompletions(cmd *cobra.Command, dockerCLI completion.APIClientProvider) _ = cmd.RegisterFlagCompletionFunc("storage-opt", completeStorageOpt) _ = cmd.RegisterFlagCompletionFunc("ulimit", completeUlimit) _ = cmd.RegisterFlagCompletionFunc("userns", completion.FromList("host")) + _ = cmd.RegisterFlagCompletionFunc("uts", completion.FromList("host")) _ = cmd.RegisterFlagCompletionFunc("volumes-from", completion.ContainerNames(dockerCLI, true)) }