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:
- Checked that Nexus is running using
docker ps
. - Accessed
http://127.0.0.1:8081/
(Nexus UI works fine). - Verified that a Docker (hosted) repository is configured on port 8083.
- Tried logging in using
http://nexus:8083
andhttp://127.0.0.1:8083
but still got the error. - Checked logs with
docker logs nexus
, but didn’t find anything obvious. - 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!