简体   繁体   中英

Could not authenticate with IBM Containers registry at registry.ng.bluemix.net

When I login to the IBM containers on Bluemix, I get the following error:

cf ic login
** Retrieving client certificates from IBM Containers
** Storing client certificates in /Users/triplez/.ice/certs Successfully retrieved client certificates
** Checking local docker configuration OK
** Authenticating with registry at registry.ng.bluemix.net
Could not authenticate with IBM Containers registry at registry.ng.bluemix.net
**** exit status 1
****Error response from daemon: invalid registry endpoint registry.ng.bluemix.net/v0/: unable to ping registry endpoint registry.ng.bluemix.net/v0/
v2 ping attempt failed with error: Get registry.ng.bluemix.net/v2/: dial tcp: lookup registry.ng.bluemix.net on 103.11.48.126:53: read udp 103.11.48.126:53: i/o timeout
v1 ping attempt failed with error: Get registry.ng.bluemix.net/v1/_ping: dial tcp: lookup registry.ng.bluemix.net on 103.11.48.126:53: read udp 103.11.48.126:53: i/o timeout. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add --insecure-registry registry.ng.bluemix.net to the daemon's arguments. In the case of HTTPS, if you have access to the registry's CA certificate, no need for the flag; simply place the CA certificate at /etc/docker/certs.d/registry.ng.bluemix.net/ca.crt

I've already uninstalled docker and reinstalled, giving me the same error. I've also deleted ~/.cf/config.json and ~/.ice/ice-cfg.ini and ~/.ice/certs/ and tried logging in again. I still receive the same error.

I've also tested this with ice cli with the same error.

EDITED

Tried this command:

ice login -a 'https://api.ng.bluemix.net' --registry 'registry.ng.bluemix.net' --host 'https://containers-api.ng.bluemix.net/v3/containers'

Got the same error:

Authentication with container cloud service at containers-api.ng.bluemix.net/v3/containers completed successfully You can issue commands now to the container service

Proceeding to authenticate with the container cloud registry at registry.ng.bluemix.net/v3 Error response from daemon: invalid registry endpoint registry.ng.bluemix.net/v3/v0/: unable to ping registry endpoint registry.ng.bluemix.net/v3/v0/

v2 ping attempt failed with error: Get registry.ng.bluemix.net/v3/v2/: dial tcp: lookup registry.ng.bluemix.net on 192.168.0.1:53: read ump 192.168.0.1:53: i/o timeout
v1 ping attempt failed with error: Get registry.ng.bluemix.net/v3/v1/_ping: dial tcp: lookup registry.ng.bluemix.net on 192.168.0.1:53: read udp 192.168.0.1:53: i/o timeout. If this private registry supports only HTTP or HTTPS with an unknown CA certificate, please add --insecure-registry registry.ng.bluemix.net to the daemon's arguments. In the case of HTTPS, if you have access to the registry's CA certificate, no need for the flag; simply place the CA certificate at /etc/docker/certs.d/registry.ng.bluemix.net/ca.crt

docker is not available on your system or is not properly configured

Could not authenticate with cloud registry at registry.ng.bluemix.net/v3

You can still use IBM Containers but will not be able to run local docker containers, push, or pull images

It looks like the container cloud service host name is not correct. Please try to run the ice login command as below:

ice login -a 'https://api.ng.bluemix.net' --registry 'registry.ng.bluemix.net' --host 'https://containers-api.ng.bluemix.net/v3/containers'

Based on your comment "boot2docker has been deprecated" I assume you are using Docker 1.8.

This version of Docker is not supported by IBM Containers on Bluemix yet.

Please see documentation in link below saying Docker 1.6 or 1.7 is required:

https://www.ng.bluemix.net/docs/containers/container_cli_ov.html

I know IBM Containers team is working to add support for Docker 1.8 as well. Please keep an eye on documentation for updates in the future.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM