do you know if it is possible to configure system-docker to access private registry? I want to have this because I would like to run a system service using a image from my private registry.
Thanks a lot!
I do this all the time, when i deploy my image, i just use an image name like this
Maybe I was not clear enough. I mean a private registry with self-signed certificate or insecure mode. When I do so, it fails to pull down the image from my registry since it is not trustable.
I was searching how to do this as well (which is how I stumbled on this forum topic). I also found:
but that post is quite old (by Rancher OS standards at least) and it looks like the names of things have changed a bit. However, after reading it, I’m guessing that system-docker can be configured similarly to the user-docker.
So if I look at my “user” Docker config I see:
[rancher@ranchy ~]$ sudo ros config get rancher.docker
And for my “system” Docker I see:
[rancher@ranchy ~]$ sudo ros config get rancher.system_docker
Although I haven’t tried it yet, I bet one could add the insecure flag to the rancher.system_docker.args and then after restarting the system Docker should be able to access an insecure registry.