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.

Docker: Improve support for private registries

Featured Replies

I'm building myself a application which is being built into a docker container and hosted in a private gitlab.com repo / registry.

The only problem is updating the container and showing correct information whether it is up-to-date or not in the docker tab.

 

The problem is that the webgui basically only works with docker hub images, since the registry is hardcoded into the update process and the getRemoteVersionV2 function.

I modified the webgui and created a pull request to follow the correct auth flow for tokens, etc

https://github.com/limetech/webgui/pull/403

 

So long as you run "docker login registry.gitlab.com/[...]" on unraid and ensure that the "/root/docker/config.json" is available after reboots the pull request will allow you to pull docker images from registry.gitlab.com which require authentication etc.

This should also work with other docker registries, since the pull request rewrites getRemoteVersionV2 to follow the correct authentication flow.

 

The only problem is that I couldn't test the changes in an unRAID install, since I'm not sure how to setup a dev environment for that (see also https://github.com/limetech/webgui/issues/400).

 

I'm mostly looking for some kind of acknowledgment that the pull request has been seen by someone other than me^^

And some info how to further test it would be great as well. (is there a unraid test vm?)

@SpaceInvaderOne has a video on how to run unRaid as a VM within unRaid.  Or you could always just do the mods on a production server as I do.

  • Author

Okay, then I'll use my production server.

Already found one small problem and it seems to work without any problems now.

Sorry for asking, but what is the benefit for the "regular" user here?

I understand that when you do your own docker development, it is convenient to retrieve from your private repository, but regular users would install publicly available containers, not private repositories.

 

  • Author

At least the rewrite of the getRemoteVersionV2 function would allow public containers from other registries to work correctly (I think, maybe I'll have to change some small things).

 

The current getRemoteVersionV2 function will only work with docker containers from hub.docker.com (since the token and api urls are hardcoded). And it would be more inline with how docker itself works (basically defaulting to hub.docker.com for the token flow, but using the api of the other registries if given).

If i decide to release my app and don't push it to hub.docker.com (for some reason or another) nobody will be able to update it, even if it is publicly available via the gitlab docker registry.

Edited by rhurling
added information

Ok, I think this can be split into two feature requests

1. Don't use a hardcoded URL but use an API instead to obtain the URL, which allows the image to exist elsewhere

2. Add support for private repositories, which require authentication (username/password)

 

Archived

This topic is now archived and is closed to further replies.

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.