在从 GCR 提取图像的身份验证方法文档中,它只提到了如何为 docker 配置访问权限,但我必须ctr
在我的GCE VM上使用 containerd CLI ,由于某种原因我不能使用 Docker。
错误是
$ sudo ctr images pull gcr.io/<path>
gcr.io/<path>: resolving |--------------------------------------|
elapsed: 0.3 s total: 0.0 B (0.0 B/s)
ctr: failed to resolve reference "gcr.io/<path>:latest": unexpected status code [manifests latest]: 401 Unauthorized
如何为其配置访问权限?
请注意,我不在 GKE 或其他 k8s 环境中。