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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user