[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"]
就能自动把短名称补全成完整得镜像名称,这样就能直接更具名称去官网拉最新得,但是我改了之后还不行,
所以我现在怀疑
所以有懂得老哥么?