[kubernetes/docker] failed to resolve reference ...:latest: not found

问题描述:

pod一直pending, kubectl describe pod ... 显示:

复制代码
  Warning  Failed     9s (x3 over 63s)   kubelet            Failed to pull image "mathemagics/my-kube-scheduler": rpc error: code = NotFound desc = failed to pull and unpack image "docker.io/mathemagics/my-kube-scheduler:latest": failed to resolve reference "docker.io/mathemagics/my-kube-scheduler:latest": docker.io/mathemagics/my-kube-scheduler:latest: not found
 Warning  Failed     9s (x3 over 63s)   kubelet            Error: ErrImagePull

解决方案

参考: https://github.com/orgs/community/discussions/23606, "One thing to be aware of: The latest tag isn't automatic, you need to push it like any other tag."

总结起来:

要么给哪个image加上latest的tag,

要么在yaml声明中指定tag.

相关推荐
Qayrup11 小时前
docker 搭建私有仓库,推送并拉取
运维·docker·容器
郭庆汝11 小时前
docker拉取英伟达官方cuda11.8镜像
docker·cuda11.8
天下不喵12 小时前
Ubuntu24.04安装Docker过程记录
docker
黑黍13 小时前
如何在k8s中配置并使用nvidia显卡
云原生·容器·kubernetes
冷血~多好14 小时前
使用docker部署elk,实现日志追踪
elk·docker·容器
会飞的小蛮猪14 小时前
SkyWalking运维之路(Java探针接入)
java·运维·经验分享·容器·skywalking
天一生水water15 小时前
docker-compose安装
运维·docker·容器
蓝象_15 小时前
docker安装配置mysql
mysql·docker·容器
Cxzzzzzzzzzz16 小时前
Kubernetes 架构
容器·架构·kubernetes
一叶知秋yyds16 小时前
Centos 安装 Docker教程
linux·docker·centos