Docker Login to Nexus Fails: "Client.Timeout exceeded while awaiting headers"

Hi everyone,

I’m trying to log in to my Nexus Docker registry using the following command:

bash

CopierModifier

docker login -u admin -p mypassword https://nexus:8083

However, I keep getting this error:

vbnet

CopierModifier

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

What I’ve Tried So Far:

  1. Checked that Nexus is running using docker ps.
  2. Accessed http://127.0.0.1:8081/ (Nexus UI works fine).
  3. Verified that a Docker (hosted) repository is configured on port 8083.
  4. Tried logging in using http://nexus:8083 and http://127.0.0.1:8083 but still got the error.
  5. Checked logs with docker logs nexus, but didn’t find anything obvious.
  6. Restarted Nexus and Docker, but the issue persists.

Additional Info:

  • Nexus is running inside a Docker container.
  • Using Docker on macOS.
  • My Nexus container is on the same network as my Jenkins container (172.20.0.4:8083).
  • telnet 172.20.0.4 8083 fails inside my Jenkins container.

Does anyone know how to fix this timeout issue? Any help is appreciated! :folded_hands:

So you log in to a URL on port 8083 using HTTPS, but later you quoted HTTP urls with the same port. It cannot be both. Did you accidentally wrote http instead of https in the “What I’ve tried so far” list?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.