我运行了
但是,当我尝试运行它时,Pod无法启动。
eval $(minikube docker-env)
,然后构建了一个Docker容器。当我在主机上运行docker images
时,我可以看到这个镜像。当我运行minikube ssh
然后运行docker images
时,我也能看到它。但是,当我尝试运行它时,Pod无法启动。
kubectl describe pod
显示:14m 3m 7 kubelet, minikube spec.containers{quoting-crab-customer-refresh-cache-cron} Normal Pulling pulling image "personalisation-customer:latest"
14m 3m 7 kubelet, minikube spec.containers{quoting-crab-customer-refresh-cache-cron} Warning Failed Failed to pull image "personalisation-customer:latest": rpc error: code = 2 desc = Error: image library/personalisation-customer:latest not found
14m 2s 66 kubelet, minikube Warning FailedSync Error syncing pod
14m 2s 59 kubelet, minikube spec.containers{quoting-crab-customer-refresh-cache-cron} Normal BackOff Back-off pulling image "personalisation-customer:latest"
我的imagePullPolicy
是Always
。
这可能是什么原因?其他pod在本地工作正常。