这是一个创建于 1356 天前的主题,其中的信息可能已经有所发展或是发生改变。
环境:rancher + k8s + harbor
出错内容为:
Failed to pull image "X.X.X.X/public/XXXX": rpc error: code = Unknown desc = failed to pull and unpack image "X.X.X.X/public/XXXX:latest": failed to resolve reference "X.X.X.X/public/XXXX:latest": failed to do request: Head https://X.X.X.X/public/XXXX/manifests/latest: dial tcp X.X.X.X:443: connect: connection refused
已设置:
harbor 中已改为 http 模式。
在 k8s 中,使用命令行模式:docker pull X.X.X.X/public/XXXX,这样可以从 harbor 拉取镜像,但是在 k8s 中不行。
问题:k8s 拉取私有仓库的镜像如何才能成功?
3 条回复 • 2020-10-09 16:35:48 +08:00
|
|
1
joesonw 2020-10-09 15:14:28 +08:00
|
|
|
2
ixx 2020-10-09 16:12:24 +08:00
私库支持 https 吗
|
|
|
3
index90 2020-10-09 16:35:48 +08:00
|