kubernetes 新建POD时,报错:pull access denied, repository does not exist or may require docker login

翻译自:https://github.com/kubernetes/kubernetes/issues/24903#issuecomment-379415868

我有一个镜像在本地:"test/api-server:latest"

但是在使用K8S创建POD时,却报错:

Failed to pull image "test/api-server:latest": rpc error: code = Unknown desc = Error response from daemon: pull access denied for test/api-server, repository does not exist or may require 'docker login

查寻,得知是因为拉取的镜像是一个latest的标签。

将标签改为release或者其他,就成功了。

你可能感兴趣的:(kubernetes 新建POD时,报错:pull access denied, repository does not exist or may require docker login)