Skip to content

I can't configure the docker.io image repository #10344

Closed Answered by brandond
ihezebin asked this question in Q&A
Discussion options

You must be logged in to vote

That's not valid YAML... you shouldn't put a trailing comma at the end of each list entry. You're not seeing anything in config.toml because it's throwing an error when loading your registries.yaml, which probably shows up in the logs if you'd looked at them.

Either do

mirrors:
  "docker.io":
    endpoint: ["https://uph96ue9.mirror.aliyuncs.com", "https://mirror.ccs.tencentyun.com"]

or

mirrors:
  "docker.io":
    endpoint:
      - "https://uph96ue9.mirror.aliyuncs.com"
      - "https://mirror.ccs.tencentyun.com"

but not

mirrors:
  "docker.io":
    endpoint:
      - "https://uph96ue9.mirror.aliyuncs.com",
      - "https://mirror.ccs.tencentyun.com"

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by brandond
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #10343 on June 12, 2024 05:20.