简体   繁体   English

让docker从kubernetes内部不安全的注册表中提取图像

[英]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.

相关问题 Kube.netes 从不安全的 docker 注册表中拉取 - Kubernetes pull from insecure docker registry 如何使用最新的 Kubernetes 从不安全的私有注册表中提取 docker 映像 - How to pull docker image from a insecure private registry with latest Kubernetes Kubernetes 从私有不安全注册表中提取图像失败 - Kubernetes pull image from private insecure registry fails 如何从 Docker Swarm 中的 Google Container Registry 中提取图像 - How to pull images from Google Container Registry inside Docker Swarm 无法通过 minikube 从不安全的注册表中提取图像 - Unable to pull images from insecure registry through minikube 一旦启用Kubernetes,Windows的Docker无法从我的私有注册表中提取图像 - Docker from windows is unable to pull images from my private registry once Kubernetes is enabled docker pull / push无法使用不安全的注册表 - docker pull/push not working with insecure registry Kubernetes无法从不安全的注册表中提取信息,也无法从脱机群集上的本地映像运行容器 - Kubernetes cannot pull from insecure registry ans cannot run container from local image on offline cluster 如何在不安全的注册表中列出Docker映像 - How to list docker images in insecure-registry 无法获取本地Kubernetes(minikube)从本地Docker注册表中提取 - Cannot get local Kubernetes (minikube) to pull from local Docker registry
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM