kylemart Posted January 15, 2020 Share Posted January 15, 2020 (edited) Hey everyone, I recently set up a private, insecure docker registry to store docker images used by my NAS. The idea being, I can work on private automation-related programs on my home dev box, build docker images for them, deploy the docker images to my private docker registry, and have Unraid detect the updates with a click of the "Check for Updates" button in the WebGUI. There's a slight problem I'm running into, however. I'm able to deploy the images to my private registry, and I'm able to pull down the images and run them as containers on my NAS, but Unraid won't detect available updates. The only way to get the update onto my NAS is to either: a) edit the container's configuration in the WebGUI so that it re-pulls the image and restarts or b) delete the container / image and create a new one. Since this isn't an issue with images hosted in docker hub, I'm currently just deploying my images into public repositories -- which works fine. That said, this isn't the ideal setup that I'm looking for... Anyone know how I can get Unraid to properly detect that new versions are available in my private registry? Thanks! Edited January 15, 2020 by kylemart Quote Link to comment
Squid Posted January 15, 2020 Share Posted January 15, 2020 Can you do a Force Update when the docker tab is showing the advanced view? Quote Link to comment
kylemart Posted January 15, 2020 Author Share Posted January 15, 2020 (edited) 16 minutes ago, Squid said: Can you do a Force Update when the docker tab is showing the advanced view? Ooh, wasn't aware of that option. Yeah, forced updates work. Although it claims things are up to date (after clicking "Check for Updates"): Running a forced update indicates otherwise: Edited January 15, 2020 by kylemart Quote Link to comment
kylemart Posted January 15, 2020 Author Share Posted January 15, 2020 If this is unexpected behavior I can file a proper bug report through the Unraid WebGUI. Just let me know Quote Link to comment
Squid Posted January 15, 2020 Share Posted January 15, 2020 If unRaid can't determine if an update is available, then it will always show up to date in order to limit support problems. It's a bit of a toss up though if this is a bug report or a feature request to support private repositories via the GUI. Quote Link to comment
kylemart Posted January 15, 2020 Author Share Posted January 15, 2020 (edited) 2 hours ago, Squid said: If unRaid can't determine if an update is available, then it will always show up to date in order to limit support problems. It's a bit of a toss up though if this is a bug report or a feature request to support private repositories via the GUI. Hmm, that's a fair point. I guess it's more of a feature request than a bug then, especially if the intended use-case is for docker hub to be used. I've noticed that, upon reboot, the /etc/docker/daemon.json file I created (via the command line) to allow insecure connections to my private repository disappeared. Seems as though my intended setup, in its current form, is even less compatible with unRaid than I originally surmised. I guess should private repositories become a supported feature, it would be nice if this configuration option (insecure repositories) were made configurable via the WebGUI and stuck after reboots. That's in addition, of course, to updating the implementation of the "update available" indicator to support private repositories. All-in-all, def exceeds the scope of a bug fix. But anyway, thanks for the insight Squid! In the meantime I think I'll stick with public docker hub repositories. I'm not too worried if the images I'm creating for my NAS are public -- there's nothing sensitive or proprietary in them Cheers! Edited January 15, 2020 by kylemart Quote Link to comment
trurl Posted January 15, 2020 Share Posted January 15, 2020 2 minutes ago, kylemart said: the /etc/docker/daemon.json file I created (via the command line) to allow insecure connections to my private repository disappeared. The Unraid OS runs in RAM. The OS is unpacked from the archives on flash into RAM and it runs completely in RAM. All the usual Linux OS folders such as /etc are in RAM. Only mounted storage persists. If you want any changes to the OS folders you will have to reapply them at each boot. Quote Link to comment
Grohmand Posted January 16, 2020 Share Posted January 16, 2020 I have the same issue and even with secure registries using Docker registry or Harbor I noticed now after the new update it will show that it is up-to-date and not reflect it's correct status. Having this added would be great. 1 Quote Link to comment
spgill Posted February 11, 2020 Share Posted February 11, 2020 I'm having the same experience mentioned here while trying to pull images from my GitHub-based repository. Unraid will never show that an update is available, but if I "force update" it will pull the changes just fine. Having this feature work like expected for private repos would be a wonderful addition. 😌 Quote Link to comment
rystaf Posted April 12, 2020 Share Posted April 12, 2020 Support for private registry updating was actually added awhile ago, but it expects the registry to use Bearer tokens for authentication. I just submitted a change to allow for basic auth as well as no auth at all. 2 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.