From c52e1f248757d741b42df868e82a97e188814763 Mon Sep 17 00:00:00 2001 From: Tibor Vass Date: Tue, 23 Apr 2019 22:23:32 +0000 Subject: [PATCH] context: ClientOpts() now includes WithAPIVersionNegotiation if version is missing Signed-off-by: Tibor Vass Signed-off-by: Sebastiaan van Stijn --- cli/context/docker/load.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli/context/docker/load.go b/cli/context/docker/load.go index b163dac38a..8de36b4a25 100644 --- a/cli/context/docker/load.go +++ b/cli/context/docker/load.go @@ -128,6 +128,8 @@ func (c *Endpoint) ClientOpts() ([]client.Opt, error) { version := os.Getenv("DOCKER_API_VERSION") if version != "" { result = append(result, client.WithVersion(version)) + } else { + result = append(result, client.WithAPIVersionNegotiation()) } return result, nil }