简体   繁体   English

无法从本地Docker注册表推/拉

[英]Can't push/pull from local docker registry

I have created a cluster of Kubernetes, and installed docker for each node. 我创建了一个Kubernetes集群,并为每个节点安装了docker。 When I try to pull or push an image to my local registry, using docker push local_registry_addr:port/image_id , I get the following response: Get local_registry_addr:port/v2: http: server gave HTTP response to HTTPS client . 当我尝试使用push local_registry_addr:port/image_id将图像拉入或推送到本地注册表时,得到以下响应: Get local_registry_addr:port/v2: http: server gave HTTP response to HTTPS client

This happens although I got the certificate from the registry server, and add it as a certificate on my docker server. 尽管我从注册表服务器获得了证书,并将其作为证书添加到我的docker服务器上,但仍会发生这种情况。 If I try to wget local_registry_addr:port , I get 200 OK . 如果我尝试获取wget local_registry_addr:port ,我会得到200 OK

How can I fix it? 我该如何解决? Is there anything I need to configure perhaps? 我可能需要配置什么吗?

问题是我没有添加端口-使用push local_registry_addr/image_id工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM