Merge pull request #6420 from thaJeztah/28.x_backport_complete_pull

[28.x backport] add completion for docker image pull
This commit is contained in:
Sebastiaan van Stijn
2025-09-03 17:35:07 +02:00
committed by GitHub
+3 -1
View File
@@ -46,7 +46,9 @@ func newPullCommand(dockerCLI command.Cli) *cobra.Command {
"category-top": "5",
"aliases": "docker image pull, docker pull",
},
ValidArgsFunction: cobra.NoFileCompletions,
// Complete with local images to help pulling the latest version
// of images that are in the image cache.
ValidArgsFunction: completion.ImageNames(dockerCLI, 1),
}
flags := cmd.Flags()