Skip to content

Commit

Permalink
Merge pull request #3485 from apostasie/fix-push-bustage
Browse files Browse the repository at this point in the history
Fix Docker Hub push regression
  • Loading branch information
AkihiroSuda authored Oct 2, 2024
2 parents c156ee6 + 544991a commit ff17045
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/imgutil/dockerconfigresolver/registryurl.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,10 @@ func (rn *RegistryURL) AllIdentifiers() []string {

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

// Add legacy variants
Expand Down

0 comments on commit ff17045

Please sign in to comment.