Home > Article > Operation and Maintenance > How to solve the error when docker pulls private warehouse image
The following problem occurs when pulling the image from the private mirror library:
docker pull myregistry:xx Error response from daemon: Get https://xxx:5000/v1/_ping: http: server gave HTTP response to HTTPS client
Solution:
Modify this or create a new /etc /docker/daemon.json
Add the following statement:
{ "insecure-registries":["myregistry.example.com:5000"] }
Then restart the docker service:
sudo service docker restart
Solution .
Related recommendations: docker tutorial
The above is the detailed content of How to solve the error when docker pulls private warehouse image. For more information, please follow other related articles on the PHP Chinese website!