Skip to content

all bake targets should share the same AuthProvider #2116

@nicks

Description

@nicks

Description

Currently, when you build N targets, each target creates its own AuthProvider. So if each target needs to pull from index.docker.io, they need to make N round trips to the credential helper.

bo.Session = append(bo.Session, authprovider.NewDockerAuthProvider(dockerConfig, nil))

It would be better if all N targets used the same AuthProvider, so they only need to fetch credentials once.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions