Home > Operation and Maintenance > Docker > How to solve the error when docker pulls private warehouse image

How to solve the error when docker pulls private warehouse image

WJ
Release: 2020-06-09 16:30:48
Original
3360 people have browsed it

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
Copy after login


Solution:
Modify this or create a new /etc /docker/daemon.json
Add the following statement:

{ "insecure-registries":["myregistry.example.com:5000"] }
Copy after login


Then restart the docker service:

sudo service docker restart
Copy after login


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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template