SUSE / Portus

Authorization service and frontend for Docker registry (v2)
http://port.us.org/
Apache License 2.0
3k stars 470 forks source link

Error: registry does not implement v2 of the API #2213

Closed fengdoudm closed 5 years ago

fengdoudm commented 5 years ago

Description

I got some errors when portus connect to registry on the ui. errors info: Error: registry does not implement v2 of the API

All setups are correct, i don't know how to debug this issue. I had tried a whole day to figure out it, but still get same error.

I realy have no idea what to do, who can help me, thanks...

fengdoudm commented 5 years ago

I just had solved this issue. My MACHINE_FQDN is customized, it can be accessed externally, but i only bind this FQDN to docker host, docker container such as (portus, registry) that can't access FQDN. Hence, portus threaw "registry does not implement v2 of the API". There are two options:

  1. Bind MACHINE_FQDN to public DNS server
  2. Bind MACHINE_FQDN to '/etc/hosts' on all hosts that contain docker host and docker container.