unqualified-search-registries = ["docker.io"]
[[registry]]
prefix = "docker.io"
location = "docker.io"
[[registry.mirror]]
location = "hub-mirror.c.163.com"
[[registry.mirror]]
location = "mirror.baidubce.com"
[[registry.mirror]]
location = "f1361db2.m.daocloud.io"
[[registry.mirror]]
location = "ustc-edu-cn.mirror.aliyuncs.com"
[[registry.mirror]]
location = "ghcr.io"
建议先备份原配置文件
cp /etc/containers/registries.conf /etc/containers/registries.conf.backup
echo '' > /etc/containers/registries.conf
然后将上面的配置粘贴进去