Skip to content

Commit

Permalink
docker auth: only log and don't fail if some auth creds were not able…
Browse files Browse the repository at this point in the history
… to be obtained
  • Loading branch information
skylenet committed Oct 30, 2024
1 parent 4e9bad9 commit 2c28749
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ func storeConfigInVolume(
for _, registry := range registries {
creds, err := docker_manager.GetAuthFromDockerConfig(registry)
if err != nil {
return stacktrace.NewError("An error occurred getting auth for registry '%v' from Docker config: %v", registry, err)
logrus.Warnf("An error occurred getting auth for registry '%v' from Docker config: %v", registry, err)
}
// creds can be nil if the registry doesn't have auth
if creds != nil {
if err != nil && creds != nil {
cfg.Auths[registry] = *creds
}
}
Expand Down

0 comments on commit 2c28749

Please sign in to comment.