diff --git a/cli/command/container/run.go b/cli/command/container/run.go index 9d67777142..2818af849c 100644 --- a/cli/command/container/run.go +++ b/cli/command/container/run.go @@ -63,7 +63,7 @@ func NewRunCommand(dockerCli command.Cli) *cobra.Command { } if image, tag, found := strings.Cut(toComplete, ":"); found { - remoteTags, err := dockerCli.Client().ImageHubTags(cmd.Context(), image, hub.ImageOptions{ + remoteTags, err := dockerCli.Client().HubImageTags(cmd.Context(), image, hub.ImageOptions{ Name: tag, Ordering: "last_updated", Page: 0, @@ -83,7 +83,7 @@ func NewRunCommand(dockerCli command.Cli) *cobra.Command { return all, cobra.ShellCompDirectiveKeepOrder | cobra.ShellCompDirectiveNoFileComp } - remoteImages, err := dockerCli.Client().ImageHubSearch(cmd.Context(), toComplete, hub.SearchOptions{ + remoteImages, err := dockerCli.Client().HubImageSearch(cmd.Context(), toComplete, hub.SearchOptions{ From: 0, Size: 25, Type: hub.SearchTypeImage, diff --git a/cli/command/image/pull.go b/cli/command/image/pull.go index e051b9e6ed..3f5ba8ec77 100644 --- a/cli/command/image/pull.go +++ b/cli/command/image/pull.go @@ -46,7 +46,7 @@ func NewPullCommand(dockerCli command.Cli) *cobra.Command { } if image, tag, found := strings.Cut(toComplete, ":"); found { - remoteTags, err := dockerCli.Client().ImageHubTags(cmd.Context(), image, hub.ImageOptions{ + remoteTags, err := dockerCli.Client().HubImageTags(cmd.Context(), image, hub.ImageOptions{ Name: tag, Ordering: "last_updated", Page: 0, @@ -64,7 +64,7 @@ func NewPullCommand(dockerCli command.Cli) *cobra.Command { return images, cobra.ShellCompDirectiveKeepOrder | cobra.ShellCompDirectiveNoFileComp } - remoteImages, err := dockerCli.Client().ImageHubSearch(cmd.Context(), toComplete, hub.SearchOptions{ + remoteImages, err := dockerCli.Client().HubImageSearch(cmd.Context(), toComplete, hub.SearchOptions{ From: 0, Size: 25, Type: hub.SearchTypeImage,