k3s 拉取私有镜像 和 代理镜像配置
· One min read
写在 2024 年 7 月 docker hub 被墙之后
/etc/rancher/k3s/registries.yaml
mirrors:
registry.dafengstudio.cn:
endpoint:
- "https://registry.dafengstudio.cn"
docker.io:
endpoint:
- https://docker.m.daocloud.io
- https://huecker.io
- https://dockerhub.timeweb.cloud
- https://noohub.ru
configs:
"registry.dafengstudio.cn":
auth:
username: xxx
password: xxxx
然后记得重启
service k3s restart
service k3s-agent restart