cli/command: use client.CurrentVersion()

Make sure the new CurrentVersion() function, which was added in
a7e2c3ea1e.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2022-12-05 18:25:15 +01:00
parent 45f62dba0e
commit c0b37c06d3
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 1 additions and 1 deletions

View File

@ -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
}