k8s 拉取私有仓库失败

Ads from Inoreader • Remove

k8s 报错拉取镜像失败 Error response from daemon: pull access denied for istio/citadel, repository does not exist or may require ‘docker login’

 

docker login后,把配置拷贝到以下目录的其中一个。如果是${HOME}/.docker/config.json看说明是要额外设环境变量给kubelet的,可以试试放在/var/lib/kubelet/config.json

 

Docker stores keys for private registries in the $HOME/.dockercfg or $HOME/.docker/config.json file. If you put the same file in the search paths list below, kubelet uses it as the credential provider when pulling images.

{--root-dir:-/var/lib/kubelet}/config.json
 
{cwd of kubelet}/config.json
 
${HOME}/.docker/config.json
 
/.docker/config.json
 
{--root-dir:-/var/lib/kubelet}/.dockercfg
 
{cwd of kubelet}/.dockercfg
 
${HOME}/.dockercfg
 
/.dockercfg
 
Note: You may have to set HOME=/root explicitly in your environment file for kubelet.

https://kubernetes.io/docs/concepts/containers/images/

版权声明:
作者:dingding
链接:https://www.techfm.club/p/3017.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
< <上一篇
下一篇>>