Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Private registry push fail: server gave HTTP response to HTTPS client

Tags:

docker

nexus

I was using docker in linux machine where I was pulling images from my local docker repo over http authentication. Now I need to use the same thing on windows setup. Issue is when I am trying to pull image using command

docker pull <IP>:port/abc/xyz 

it gives me error Private registry push fail: server gave HTTP response to HTTPS client

I have modified the daemon.json file to

{"registry-mirrors":[],"insecure-registries":["<IP>:port"], "debug":true, "experimental": false}    

even after this its not getting started. And showing me the same error.

like image 859
Kushagra Misra Avatar asked Aug 31 '25 22:08

Kushagra Misra


1 Answers

I have faced the same issue. What you have to do is just give the insecure-registries, and remove all other configurations. Just copy paste the below json inside daemon.json file ( available in "C:\Users{user-name}.docker\daemon.json" or "/etc/docker/daemon.json")

{
   "insecure-registries" :["<IP>:port"]
}   
like image 103
Ankit Chaturvedi Avatar answered Sep 03 '25 17:09

Ankit Chaturvedi