From 2185d07f05ef83ace78ba7b8a474164cc384c0cf Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Thu, 15 Dec 2022 12:12:25 +0100 Subject: [PATCH] builder: check endpoint from store when loading factory Signed-off-by: CrazyMax --- builder/builder.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builder/builder.go b/builder/builder.go index 3ce8c307..55476ea1 100644 --- a/builder/builder.go +++ b/builder/builder.go @@ -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 }