Get "https:://registry-1.docker.io/v2/" http: server gave http response to https client

528 Views Asked by At

Im on the remote server, which is linux machine. I am trying to pull some base images like nginx, alpine. when I used docker pull nginx, it gives me this error(server gave https response to https client with this url:https:://registry-1.docker.io/v2/) I tried changing the daemon.json file by adding insecure registries with this url, but still i cant pull the images

Expecting image to be pulled

1

There are 1 best solutions below

1
yongyi zhou On

Changing the daemon.json file works for me. My daemon.json like below.

{ "insecure-registries":["registry-1.docker.io"], "live-restore": true }