
[plugins."io.containerd.grpc.v1.cri".registry] config_path = "/etc/containerd/certs.d" [root@harbor containerd]# cat certs.d/hosts.toml server = "https://registry-1.docker.io" [host."https://registry-1.docker.io"] capabilities = ["pull", "resolve"] [host."https://registry-1.docker.io".header] # Authorization = ["Basic <base64_encoded_auth>"] [host."https://registry-1.docker.io".tls] insecure_skip_verify = false [host."https://registry-1.docker.io".mirrors] endpoint = ["https://hub-mirror.c.163.com"] ctr image pull docker.io/library/nginx:latest 我就感觉很不适应,明明 docker 得时候直接写镜像名称得时候默认去官网拉最新得那个 这让人很不舒服
server = "https://registry-1.docker.io" [host."https://registry-1.docker.io"] capabilities = ["pull", "resolve"] [host."https://registry-1.docker.io".header] # 如果需要认证信息,可以在这里添加 # Authorization = ["Basic <base64_encoded_auth>"] [host."https://registry-1.docker.io".tls] insecure_skip_verify = false [host."https://registry-1.docker.io".mirrors] endpoint = ["https://hub-mirror.c.163.com"] [host."docker.io"] capabilities = ["pull", "resolve"] [host."docker.io".header] # 如果需要认证信息,可以在这里添加 # Authorization = ["Basic <base64_encoded_auth>"] [host."docker.io".tls] insecure_skip_verify = false [host."docker.io".mirrors] endpoint = ["https://hub-mirror.c.163.com"] 就能自动把短名称补全成完整得镜像名称,这样就能直接更具名称去官网拉最新得,但是我改了之后还不行,
所以我现在怀疑
所以有懂得老哥么?
1 miaosl OP 现在问 ai ,gpt4 就跟个弱智一样,重复着让我确定了 n 遍还要确定得配置文件,已经吐了,还是得找一下群里得老大哥给看看 |
2 seers 2024-07-30 08:11:14 +08:00 via Android 请使用 nerdctl 而不是 ctr |
3 Nazz 2024-07-30 09:35:50 +08:00 换 docker 吧, containerd 的配置太傻, 嵌套深了应该使用 yaml 而不是 toml |
5 julyclyde 2024-07-30 11:11:13 +08:00 从你工作的过程来看,我觉得你缺乏 linux 使用基础…… |