TECHIES WORLD

For Techs.... Techniques.... Technologies....

AWSBashLinuxWindows

Docker Error: http: server gave HTTP response to HTTPS client

http: server gave HTTP response to HTTPS client

This error usually happens on using the private Docker repositories.

We can resolve this error by the following steps.

Step1: Open the file "/etc/docker/daemon.json".

#vi /etc/docker/daemon.json

Step2: Add the private repository url to this file.

{ "insecure-registries":["repo-url:port"] }

Here we need to replace repo-url and port with the corresponding values.

Step3: Restart Docker daemon.

#systemctl restart docker

That's all…

Leave a Reply