what's the difference between google-containers and google_containers when use kubeadm(kubernetes)

8/3/2017

Currently I'm using kubeadm 1.7.2 to install kubernetes.

It will download images like gcr.io/google_containers/etc-amd64:3.0.17. But in gcr.io, I only see google-containers.

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

If they are the same, why when I tag them to google-containers instead of google-containers kubeadm will download the google_containers/xxx ???

-- xren
image
kubeadm
kubernetes

1 Answer

8/3/2017

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

Since 2015, yes: see 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.

-- VonC
Source: StackOverflow