无法使用kubectl使用kubernetes提取公共图像 [英] unable to pull public images with kubernetes using kubectl

查看:191
本文介绍了无法使用kubectl使用kubernetes提取公共图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行以下命令,当我检查Pod是否正在运行时,出现以下错误:

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

无法提取图像"tomcat":rpc错误:代码=未知desc =否 清单列表条目中与linux/amd64匹配的清单

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

无法提取图像"ngnix":rpc错误:代码=未知desc =来自守护程序的错误响应:对ngnix的请求访问被拒绝,存储库不存在或可能需要'docker login'

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

我在git中看到有关私人回购引起问题但不公开的情况下如何完成此操作的帖子.以前有没有人遇到过这个?

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?

推荐答案

第一个问题

来自github 问题

有时,我们会在非amd64映像构建作业完成与amd64对应的作业之前完成,并且由于我们将清单列表对象推送到Docker Hub上的库命名空间的方式,导致使用amd64的人员(我们的主要目标用户)出现以下错误:清单列表中找不到受支持的平台"或清单列表条目中的XXX没有匹配的清单"

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清单列表不是tomcat:latestamd64构建的最新版本.

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

尝试其他标签

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

第二个问题

使用nginx而不是ngnix. 是错字.

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

这篇关于无法使用kubectl使用kubernetes提取公共图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆