Skip to content

Commit 91822a1

Browse files
committed
pull: silence WARN[0000] failed to get ac.ServerAddress
Fix issue 733 Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
1 parent d1918df commit 91822a1

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)