Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Use Insecure Registry

Featured Replies

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

  • 3 months later...
  • 8 months later...

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

  • 1 year later...

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.

 

 

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.

  • 8 months later...

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 by Stefan_H
removed sudo

  • 3 weeks later...
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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.