79308521

Date: 2024-12-26 01:50:49
Score: 1
Natty:
Report link

ok ,I got it

The reason for this is that containerd version 2 has a very different configuration specification compared to version 3, and the links online and in my research are all for version 2, but the actual runtime environment is version 3

The solutions are as follows

Registry Configuration - Introduction This document is a very important reference

 mkdir -p /etc/containerd/certs.d/privatehub.ye:5000

root@cp01:~# cat hosts.toml
server = "https://registry-1.docker.io"

[host."http://privatehub.ye:5000"]
  capabilities = ["pull", "resolve", "push"]
  skip_verify = true

cp hosts.toml /etc/containerd/certs.d/172.26.22.242:5000/hosts.toml

systemctl restart containerd.service
Reasons:
  • Blacklisted phrase (1): This document
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: kursk.ye