我有两个系统OSX 10.14,无法将图像从A拉到B,其中A运行不安全的注册表,如下所示:
docker pull 192.168.2.130:5001/php:php7
Error response from daemon: Get https://192.168.2.130:5001/v2/: http: server gave HTTP response to HTTPS client在A上,daemon.json文件如下所示:
{
"debug" : true,
"experimental" : false,
"insecure-registries" : [
"192.168.2.130:5001"
]
}docker ps显示:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ee7b5bc570e7 registry:2 "/entrypoint.sh /etc…" About an hour ago Up 34 minutes 0.0.0.0:5001->5000/tcp registry_nas下面的部分显示了docker信息:
HTTP Proxy: gateway.docker.internal:3128
HTTPS Proxy: gateway.docker.internal:3129
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
192.168.2.130:5001
127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine发布于 2019-09-27 04:51:24
您需要在信任不安全注册表的客户端上执行{ "insecure-registries":["192.168.2.130:5000"] }。
因此,如果您在B中提取图像,则应将此内容添加到B中,而不是A中,因为在本例中,B是尝试从A中提取图像的客户端。
https://stackoverflow.com/questions/58124186
复制相似问题