From a500c394df753a82ad4967c2f20b1600defb98ab Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 22 Aug 2018 00:51:19 +0200 Subject: [PATCH] Move "session" support out of experimental for API 1.39 and up Signed-off-by: Sebastiaan van Stijn --- cli/command/image/build_session.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/command/image/build_session.go b/cli/command/image/build_session.go index d4cda82fec..6015b0820c 100644 --- a/cli/command/image/build_session.go +++ b/cli/command/image/build_session.go @@ -28,6 +28,9 @@ import ( const clientSessionRemote = "client-session" func isSessionSupported(dockerCli command.Cli) bool { + if versions.GreaterThanOrEqualTo(dockerCli.Client().ClientVersion(), "1.39") { + return true + } return dockerCli.ServerInfo().HasExperimental && versions.GreaterThanOrEqualTo(dockerCli.Client().ClientVersion(), "1.31") }