Docker registry login failure

Hi All,

  • I am trying to configure a hosted docker registry on SonaType Nexus Repository Manager OSS 3.16…1-02

  • I have configure two hosted repository - one with http -8091 and another one with https - 8093

  • Disable V1 - as it is not supported by docker anymore.

when I am trying to login from my docker machine to nexus registry using

docker login -u admin -p admin123 nexusip:port - it is not connecting.

error : Error response from daemon: Get https://nexusip:port/v2/: net/http: request canceled while waiting for connection (Client. Timeout exceeded while awaiting headers)

I tried adding the nexusip and port in deamon.json - insecure registries.

Pls help me - how to fix it.

Both docker and nexus are in same network segment - no FW between two servers

The Client Timeout in your output suggests the request has never made it to the NXRM. You can verify that in your nexus.log and requests.log of NXRM. Can you double check for presence of any firewalls and reverse-proxies, please? Is there any change your NXRM is running as a Docker container itself, and therefore you would need to make it expose both 8091 and 8093 ports.