k3s 设置http docker仓库

内容纲要
cat >> /etc/rancher/k3s/registries.yaml <<EOF
mirrors:
  "docker.io":
    endpoint:
      - "https://7bezldxe.mirror.aliyuncs.com"
      - "https://registry-1.docker.io"
  "10.7.127.190:38080":
    endpoint:
      - "http://10.7.127.190:38080"
configs:
  "10.7.127.190:38080":
    auth:
      username: 'docker-manger'
      password: 'wjrc@2023'
EOF
THE END
分享
二维码
< <上一篇
下一篇>>