Use Insecure Registry


ZikPhil

Recommended Posts

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

 

 

Link to comment
  • 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
  • Thanks 2
Link to comment
  • 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.

  • Like 1
Link to comment

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.