ZikPhil Posted November 17, 2019 Share Posted November 17, 2019 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 Quote Link to comment
semisleep Posted March 12, 2020 Share Posted March 12, 2020 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 Quote Link to comment
jbeans Posted December 11, 2020 Share Posted December 11, 2020 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 Quote Link to comment
Merilix Posted August 30, 2022 Share Posted August 30, 2022 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. Quote Link to comment
BRiT Posted August 30, 2022 Share Posted August 30, 2022 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. Quote Link to comment
Stefan_H Posted May 7, 2023 Share Posted May 7, 2023 (edited) 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, 2023 by Stefan_H removed sudo 2 Quote Link to comment
adambeck7 Posted May 27, 2023 Share Posted May 27, 2023 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. 1 Quote Link to comment
Recommended Posts
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.