Merge pull request #1471 from crazy-max/fix-builder-factory

builder: check endpoint from store when loading factory
pull/1475/head
CrazyMax 2 years ago committed by GitHub
commit 64422a48d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -219,9 +219,9 @@ func (b *Builder) Factory(ctx context.Context) (_ driver.Factory, err error) {
// driver for a docker context and allows falling back to a
// docker-container driver for older daemon that doesn't support
// buildkit (< 18.06).
ep := b.nodes[0].Endpoint
ep := b.NodeGroup.Nodes[0].Endpoint
var dockerapi *dockerutil.ClientAPI
dockerapi, err = dockerutil.NewClientAPI(b.opts.dockerCli, b.nodes[0].Endpoint)
dockerapi, err = dockerutil.NewClientAPI(b.opts.dockerCli, b.NodeGroup.Nodes[0].Endpoint)
if err != nil {
return
}

Loading…
Cancel
Save