ibm-cloudcontainer-registry

Logging in to IBM Cloud Container Registry fails at us.icr.io


First of all, I am a newbie in the IBM Cloud world.

I am following some guidelines to push an image to the IBM Cloud Container Registry. But I am facing problems to login into the Container Registry.

The command that I am using is:

ibmcloud cr login

And the response is:

Logging in to 'registry.ng.bluemix.net'...

Logged in to 'registry.ng.bluemix.net'.

Logging in to 'us.icr.io'...

FAILED

Failed to 'docker login' to 'us.icr.io' with error: WARNING! Using --password via the CLI is insecure. Use --password-stdin.

Error response from daemon: Get https://us.icr.io/v2/: x509: certificate signed by unknown authority

Looking at the error certificate signed by unknown authority seems that my docker need some certificate to connect with us.icr.io.

My Docker version is 2.2.0.3


Solution

  • Have you tried running dig against us.icr.io just to check that you are going to the right host?

    This page shows all of the subnets for us.icr.io https://cloud.ibm.com/docs/containers?topic=containers-firewall#firewall_outbound They are: 169.61.234.224/29 169.61.135.160/29 169.61.46.80/29

    If you aren't going to one of those, do you have some kind of proxy in place that's interfering with the DNS resolution?