Skip to content

Proper configuration of registries.yaml to access private docker Registry #5302

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

You must be logged in to vote

The mirrors and config sections should contain ONLY the registry address (hostname and optional port). Your config includes a path, which is incorrect. You are also providing an unnecessary endpoint, as https://gitlab.url.com is the default endpoint for a registry named gitlab.url.com.

You should only need:

config:
  "gitlab.url.com":
    auth:
      username: mytokenusername
      password: mytokenpassword
    tls:
      insecure_skip_verify: true

Note that configuration is on a per-registry basis, so these credentials will be used for ALL access to the registry at gitlab.url.com. There is no way to use the containerd registry config to specify different credentials for different images …

Replies: 1 comment

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