mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
builder: fix private pulls on buildkit
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
parent
533e07afbe
commit
c693d45acf
1 changed files with 2 additions and 2 deletions
|
@ -76,11 +76,11 @@ func (is *imageSource) ID() string {
|
||||||
func (is *imageSource) getResolver(ctx context.Context, rfn resolver.ResolveOptionsFunc, ref string) remotes.Resolver {
|
func (is *imageSource) getResolver(ctx context.Context, rfn resolver.ResolveOptionsFunc, ref string) remotes.Resolver {
|
||||||
opt := docker.ResolverOptions{
|
opt := docker.ResolverOptions{
|
||||||
Client: tracing.DefaultClient,
|
Client: tracing.DefaultClient,
|
||||||
Credentials: is.getCredentialsFromSession(ctx),
|
|
||||||
}
|
}
|
||||||
if rfn != nil {
|
if rfn != nil {
|
||||||
opt = rfn(ref)
|
opt = rfn(ref)
|
||||||
}
|
}
|
||||||
|
opt.Credentials = is.getCredentialsFromSession(ctx)
|
||||||
r := docker.NewResolver(opt)
|
r := docker.NewResolver(opt)
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue