Merge pull request #43 from tiborvass/apiversion-negotiate

Negotiate API versions to allow talking with older docker daemons
This commit is contained in:
Tibor Vass 2019-04-23 15:53:37 -07:00 committed by GitHub
commit 01b97022fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

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