From eea706f6f46a4fa82a17983cadfab25209d6ff2e Mon Sep 17 00:00:00 2001 From: Alano Terblanche <18033717+Benehiko@users.noreply.github.com> Date: Thu, 14 Nov 2024 09:44:36 +0100 Subject: [PATCH] chore: update docker client Signed-off-by: Alano Terblanche <18033717+Benehiko@users.noreply.github.com> --- cli/command/container/run.go | 4 ++-- cli/command/image/pull.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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,