Skip to content

settings.container-registry.credentials not working as expected #2514

Answered by etungsten
BenB196 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @BenB196, container-registry.credentials[].registry should be the registry host for your container registry and not the image repository URL. In this case, the registry host would be "gitlab.domain.com:5050".

The settings are mapped to containerd's configuration for registry credentials as shown in https://github.com/containerd/containerd/blob/release/1.6/docs/cri/registry.md#configure-registry-credentials
Specially this part pertains to how container-registry.credentials[].registry should be set:

The registry host has to be a domain name or IP. Port number is also needed if the default HTTPS or HTTP port is not used.

Please try that out and let us know how it goes.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@BenB196
Comment options

Answer selected by BenB196
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants