【问题标题】:what's the difference between google-containers and google_containers when use kubeadm(kubernetes)使用 kubeadm(kubernetes) 时 google-containers 和 google_containers 有什么区别
【发布时间】:2018-01-10 11:33:51
【问题描述】:

目前我正在使用 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 ???

【问题讨论】:

    标签: image kubernetes kubeadm


    【解决方案1】:

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

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

    事实证明,这是因为我使用的是旧版本的 docker,它不允许在命名空间中使用“-”。
    我在运行 $docker pull gcr.io/google-containers/heapster 时收到 Invalid namespace name (google-containers), only [a-z0-9_] are allowed, size between 4 and 30 错误。

    @thockin 建议我们可以将路径更改为使用 google_containers 而不是 google-containers,因为这适用于所有版本的 docker。

    【讨论】:

      猜你喜欢
      • 2021-07-01
      • 2019-03-05
      • 2018-05-30
      • 2015-01-30
      • 2016-04-04
      • 2018-05-12
      • 1970-01-01
      • 2019-05-13
      • 2021-08-10
      相关资源
      最近更新 更多