Add insecure docker registry to daemon.json

Hi,

I try to add an insecure docker registry to a rancherOS kubernetes node.

I’ve found this tutorial over here:

https://rancher.com/docs/rancher/v1.2/en/environments/registries/

But unfortunately, I am still missing the information on how to access the daemon.json within rancherOS.

sudo vi /etc/default/docker

–> Creates new file

Has anyone an idea about this?

THanks a lot :slight_smile:

$ ros config set rancher.docker.insecure_registry ["192.168.1.2:2398"]
$ reboot
$ docker info 
# output:
> Insecure Registries:
   192.168.1.2:2398

Secure private registry can follow this docs:
RancherOS Doc