You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
@crazy-max We can't just put all bake targets behind same session as only some configurations are safe. Eg. targets may use different contexts/secrets that need to be kept separate and can't overwrite each other.
The interesting aspect about this specific case is why should it matter that all authproviders are different. The pull is still synchronized between all targets and happens only once and only one pull means only one authentication as well. This can also not be used for combining multiple pulls of different images under same credentials as all tokens are scoped by a specific repository and action.
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.
buildx/bake/bake.go
Line 1251 in d537b9e
It would be better if all N targets used the same AuthProvider, so they only need to fetch credentials once.
The text was updated successfully, but these errors were encountered: