When remote.Registry is accessing docker.io, it actually issues requests to registry-1.docker.io. Therefore, it expects the client.Credential to return the credential for registry-1.docker.io instead of docker.io.
But the current implementation of auth.StaticCredential does not handle this case.
When
remote.Registryis accessingdocker.io, it actually issues requests toregistry-1.docker.io. Therefore, it expects theclient.Credentialto return the credential forregistry-1.docker.ioinstead ofdocker.io.But the current implementation of
auth.StaticCredentialdoes not handle this case.