unable to pull public images with kubernetes using kubectl

天大地大妈咪最大 提交于 2019-12-11 04:35:27

问题


I run the following commands and when I check if the pods are running I get the following errors:

Failed to pull image "tomcat": rpc error: code = Unknown desc = no matching manifest for linux/amd64 in the manifest list entries

kubectl run tomcat --image=tomcat --port 8080

and

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

kubectl run nginx3 --image ngnix --port 80

I seen a post in git about how to complete this when private repos cause an issue but not public. Has anyone ran into this before?


回答1:


First Problem

From github issue

Sometimes, we'll have non-amd64 image build jobs finish before their amd64 counterparts, and due to the way we push the manifest list objects to the library namespace on the Docker Hub, that results in amd64-using folks (our primary target users) getting errors of the form "no supported platform found in manifest list" or "no matching manifest for XXX in the manifest list entries"

Docker Hub manifest list is not up-to-date with amd64 build for tomcat:latest.

Try another tag

kubectl run tomcat --image=tomcat:9.0 --port 8080

Second Problem

Use nginx not ngnix. Its a typo.

$ kubectl run nginx3 --image nginx --port 80


来源:https://stackoverflow.com/questions/48765821/unable-to-pull-public-images-with-kubernetes-using-kubectl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!