Skip to content

Commit c693d45

Browse files
committed
builder: fix private pulls on buildkit
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
1 parent 533e07a commit c693d45

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • builder/builder-next/adapters/containerimage

builder/builder-next/adapters/containerimage/pull.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ func (is *imageSource) ID() string {
7575

7676
func (is *imageSource) getResolver(ctx context.Context, rfn resolver.ResolveOptionsFunc, ref string) remotes.Resolver {
7777
opt := docker.ResolverOptions{
78-
Client: tracing.DefaultClient,
79-
Credentials: is.getCredentialsFromSession(ctx),
78+
Client: tracing.DefaultClient,
8079
}
8180
if rfn != nil {
8281
opt = rfn(ref)
8382
}
83+
opt.Credentials = is.getCredentialsFromSession(ctx)
8484
r := docker.NewResolver(opt)
8585
return r
8686
}

0 commit comments

Comments
 (0)