Skip to content

Commit 2f0cf75

Browse files
authored
Merge pull request #739 from AkihiroSuda/silence-ecr-warn
pull: silence `WARN[0000] failed to get ac.ServerAddress`
2 parents 30bd815 + 91822a1 commit 2f0cf75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/imgutil/dockerconfigresolver/dockerconfigresolver.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,8 @@ func NewAuthCreds(refHostname string) (AuthCreds, error) {
197197
// - ac.ServerAddress: "https://index.docker.io/v1/".
198198
if !isAuthConfigEmpty(ac) {
199199
if ac.ServerAddress == "" {
200-
// Can this happen?
201-
logrus.Warnf("failed to get ac.ServerAddress for authConfigHostname=%q (refHostname=%q)",
200+
// This can happen with Amazon ECR: https://github.com/containerd/nerdctl/issues/733
201+
logrus.Debugf("failed to get ac.ServerAddress for authConfigHostname=%q (refHostname=%q)",
202202
authConfigHostname, refHostname)
203203
} else {
204204
acsaHostname := credentials.ConvertToHostname(ac.ServerAddress)

0 commit comments

Comments
 (0)