November 17, 20196 yr Hello, I am trying to add my custom Nexus private docker registry to the `insecure-registry` settings in the deamon.json config file for docker as mentionned here: https://docs.docker.com/registry/insecure/ But I cannot find that file or any other config that would allow me to do that. Anybody has been able to successfully do it? Thanks, Phil
March 12, 20206 yr For anyone who is also seeking the answer: Use self signed certificates on your docker registry, then copy the crt file to the following folder in your UNRAID: /etc/docker/certs.d/myregistrydomain.com:5000/ca.crt For detail instruction you can checkout https://docs.docker.com/registry/insecure/#use-self-signed-certificates
December 11, 20205 yr The default configuration file location is /etc/docker/daemon.json, if not exist then create one, set the configuration like bellow: { "insecure-registries": [ "your local ip address:5000" ] } restart docker with : /etc/rc.d/rc.docker restart
August 30, 20223 yr it seems like creation of /etc/docker/daemon.json does not survive shutdown/restart cycle of the unraid server. Of course such settings have to persist somewhere, i guess it has to be somewhere in the /boot folder (the stick) I added 3 lines to the /boot/config/go script to create daemon.json during boot: # Setup docker daemon.json mkdir /etc/docker echo {\"insecure-registries\": [\"192.168.0.54:5000\"]} > /etc/docker/daemon.json But I guess there must be a better solution than that.
August 30, 20223 yr Unraid runs from RAM. Changes do not persist across reboots unless additional steps have been taken to persistent to the flash drive and reloaded on startup. Most users use the plugin "User Scripts" to run and manage customizations like that.
May 7, 20233 yr What worked for me was editing the '/boot/config/docker.cfg' file with $ nano /boot/config/docker.cfg and appending: DOCKER_OPTS="--insecure-registry YOUR_REGISTRY_IP:YOUR_REGISTRY_PORT" Then you need to restart the docker service to apply the changes with: $ /etc/rc.d/rc.docker restart This is also persistent across reboots. Edited May 26, 20233 yr by Stefan_H removed sudo
May 27, 20233 yr On 5/7/2023 at 7:57 AM, Stefan_H said: $ nano /boot/config/docker.cfg DOCKER_OPTS="--insecure-registry YOUR_REGISTRY_IP:YOUR_REGISTRY_PORT" $ /etc/rc.d/rc.docker restart Thank you! This worked for me. Haven't restarted yet, so I can't speak to the persistence, but so far so good.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.