From c0b37c06d3e5681defb454c06ec5598fc978d24b Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 5 Dec 2022 18:25:15 +0100 Subject: [PATCH] cli/command: use client.CurrentVersion() Make sure the new CurrentVersion() function, which was added in a7e2c3ea1edd195df98cb62bc353fcbf034764cd. Signed-off-by: Sebastiaan van Stijn --- cli/command/stack/swarm/deploy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/command/stack/swarm/deploy.go b/cli/command/stack/swarm/deploy.go index df5f300026..6e481e30e0 100644 --- a/cli/command/stack/swarm/deploy.go +++ b/cli/command/stack/swarm/deploy.go @@ -30,7 +30,7 @@ func RunDeploy(dockerCli command.Cli, opts options.Deploy, cfg *composetypes.Con } // client side image resolution should not be done when the supported // server version is older than 1.30 - if versions.LessThan(dockerCli.Client().ClientVersion(), "1.30") { + if versions.LessThan(dockerCli.CurrentVersion(), "1.30") { opts.ResolveImage = ResolveImageNever }