我已经使用CLI命令:Docker login登录Docker hub。输入用户名和密码,我可以拉和推送图像到Docker hub。
然而,我的K8S不能。我正试图应用一个部署,应该把这些图像拉到它的pod中,但在运行kubectl describe pod POD_NAME
时我得到了以下错误:
Warning Failed 9s kubelet Failed to pull image "myprivate/repo:tag": rpc error: code = Unknown desc = Error response from daemon: pull access denied for myprivate/repo, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
如何使docker运行在pod中也被记录到docker集线器以及从我的终端做它?
创建"然后定义你的部署。下面是如何做https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/