I have a problem with pulling docker images from a private registry (hosted using the feature in GitLab).
I added a private registry under Resources -> Registries and tested that the credentials work with docker login registry.example.com. Still, when trying to deploy a container with kubernetes, it doesnt seem to use the credentails at all.
The error I get is: Failed to pull image "registry.example.com/path/name:1.0.0": rpc error: code = 2 desc = Error response from daemon: {"message":"Get https://registry.example.com/v2/path/name/manifests/1.0.0: denied: access forbidden"}
Any hints on what to check for?
(Pulling public images like ubuntu:xenial works)
It is a newly setup RancherOS v1.1.0 instance with Rancher v2.0.0-alpha6 installed in the local disk.
I don’t know the exact details, but there might be an issue where the kubelet container needs restarted to pick up the credentials. Can you try doing that?
@joshwget can you provide input on this? Am I right or off base?
I don’t think restarting the kubelet should be required for this. There is a known issue around private registries though, and this should be fixed in the next release.
I must have gotten the restart thing confused with something else. (also I didnt notice the 2.0 tag on the issue until just now. I was thinking of something in 1.6)