Help #docker_registery #login I can log to nexus with my public ip while i can with the localhost address

Hi im running my nexus as docker container i create a docker private repository (hosted) in port 18085 when i log in with docker login -u admin localhost:18085 it log in Succeeded but when i try replace localhost with the public ip inside my hosted OVH VM machine it hunging a while then this is the output
“Error response from daemon: Get “https://my_public:18085/v2/”: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)”
and when i try log in inside my machine localmachine my own laptop the output is “Error response from daemon: Get “https://my_public_ip:18085/v2/”: dial tcp my_public_ip:18085: connect: connection refused”
i addded the public and port as insecure registry in docker in both machines mine and hosted i wish some on could help

Docker clients don’t allow authentication with insecure registries.

1 Like

how i can solve the problem even i add the host to the file /etc/docker/daemon.json

is there any solution or not ?

No unfortunately the Docker client does not allow authentication with insecure registries.

The only option is to configure Nexus with HTTPS if you wish to use authentication.

can the self signed certifacte with nginx solve the problem. ?

Yes if you configure the system where Docker is being run to accept your self-signed certificate.

1 Like