[英]Have docker pull images from an insecure registry inside kubernetes
I want to configure docker inside kubernetes so that it will use http instead of https to pull container from a specific ip. 我想在kubernetes中配置docker,以便它将使用http而不是https从特定ip提取容器。
I can do that locally by adding this line to the docker json config file : 我可以在本地通过将以下行添加到docker json config文件中来做到这一点:
"insecure-registries" : ["mydomain:port"]
I want to make it clear that I it's not about using a private registry, it's about using an insecure one. 我想说明的不是使用私有注册表,而是使用不安全的注册表。
How can I do that in kubernetes ? 如何在kubernetes中做到这一点?
您需要将您的http注册表作为一个不安全的注册表(如您在问题中提到的)添加到每个kubernetes节点上的docker守护进程中(不要忘了工作程序)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.