mirror of https://github.com/docker/cli.git
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:
parent
45f62dba0e
commit
c0b37c06d3
|
@ -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
|
// client side image resolution should not be done when the supported
|
||||||
// server version is older than 1.30
|
// 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
|
opts.ResolveImage = ResolveImageNever
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue