gpt4 book ai didi

image - 使用kubeadm(kubernetes)时,google-containers和google_containers有什么区别

转载 作者:行者123 更新时间:2023-12-02 12:08:16 25 4
gpt4 key购买 nike

目前,我正在使用kubeadm 1.7.2安装kubernetes。

它将下载gcr.io/google_containers/etc-amd64:3.0.17之类的图像。
但是在gcr.io中,我只看到google-containers

所以gcr.io.google_containers是相同的gcr.io.google-containers吗?

如果它们相同,为什么当我将它们标记为google-containers而不是google-containers时,kubeadm会下载google_containers / xxx?

最佳答案

So gcr.io.google_containers is the same gcr.io.google-containers



自2015年以来,是的:请参见 kubernetes issue 6229

It turns out that that is because I am using an older version of docker which does not allow "-" in namespaces.
I get Invalid namespace name (google-containers), only [a-z0-9_] are allowed, size between 4 and 30 error on running $docker pull gcr.io/google-containers/heapster.

@thockin suggested that we can change the path to use google_containers instead of google-containers since that works for all versions of docker.

关于image - 使用kubeadm(kubernetes)时,google-containers和google_containers有什么区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45474436/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com