From f10c9a5de139899b7e56ce1ffd6328f6d6e239c0 Mon Sep 17 00:00:00 2001 From: Tibor Vass Date: Tue, 23 Apr 2019 22:32:16 +0000 Subject: [PATCH] Negotiate API versions to allow talking with older docker daemons Signed-off-by: Tibor Vass --- commands/util.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commands/util.go b/commands/util.go index 8dd40c4c..a0d78a4f 100644 --- a/commands/util.go +++ b/commands/util.go @@ -171,6 +171,8 @@ func driversForNodeGroup(ctx context.Context, dockerCli command.Cli, ng *store.N di.Err = err return nil } + // TODO: replace the following line with dockerclient.WithAPIVersionNegotiation option in clientForEndpoint + dockerapi.NegotiateAPIVersion(ctx) d, err := driver.GetDriver(ctx, "buildx_buildkit_"+n.Name, f, dockerapi) if err != nil {