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
WJOriginal
2020-06-09 16:30:483388browse

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!

Statement:
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