Skip to content

Commit ff17045

Browse files
authored
Merge pull request containerd#3485 from apostasie/fix-push-bustage
Fix Docker Hub push regression
2 parents c156ee6 + 544991a commit ff17045

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/imgutil/dockerconfigresolver/registryurl.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,10 @@ func (rn *RegistryURL) AllIdentifiers() []string {
102102

103103
// Docker behavior: if the domain was index.docker.io over 443, we are allowed to additionally read the canonical
104104
// docker credentials
105-
if rn.Hostname() == "index.docker.io" && rn.Port() == standardHTTPSPort {
106-
fullList = append(fullList, dockerIndexServer)
105+
if rn.Port() == standardHTTPSPort {
106+
if rn.Hostname() == "index.docker.io" || rn.Hostname() == "registry-1.docker.io" {
107+
fullList = append(fullList, dockerIndexServer)
108+
}
107109
}
108110

109111
// Add legacy variants

0 commit comments

Comments
 (0)