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.

In-use Docker XML Templates (for actively running containers)

Featured Replies

Hi guys

 

I know the templates live in: /boot/config/plugins/dockerMan/templates-user

 

However any old templates also live in that folder and also old instance and attempts of by-gone years! How can i generate a list of currently live/used XML files? I was wondering if i could query the dockerman parser for a list of XML files that are actively being used right now, but being a parser assumed it's likely unaware of it's state.

 

There must be some info to query to get that list as the containers are obviously re-started ater reboot. Thought i'd ask the forum prior to putting something together to do this, but was hoping for an easier solution.

 

@Squid - Maybe one for you? :)

Edited by thestraycat
path ammend

Squid's already done exactly what you are asking for, click on the apps tab, top left is installed and previous entries.

  • Author

@JonathanM @Squid

 

Hey Jonathan, yeah i know of the installed/previous option. However it dosn't quite work how i expected. 

 

For example, if i view the 'installed apps' and filter by 'docker' i have many 'duplicate entries' in that view, so i'm not sure whether that's a live view or displaying cached entries from somewhere else. nearly all but one of the duplicates are CA containers too. One is imported from dockerhub i believe. Furthermore, If i delete the one of the duplicate instances from 'installed apps' both dissapear, and then when i reinstall the container from 'previous apps' i end up back with 2 identical instances back in 'installed apps'. So i can't even fix it.

 

So as the view is currently polluted with stale entries i cant use it for what which is getting a list of running containers.

Is there an API call for grabbing all known running containers built into Unraid or should i just query and filter all this from the native docker engine commands?

 

Bonus points - Is there an unraid container building/compliancy guide on the forum that you know of that i can use to contribute containers to the community and have them display in CA?

Edited by thestraycat
added

Definitely shouldn't do that.  can you zip up the contents of /config/plugins/dockerMan/templates-user for me to look at

 

 

  • Author

Yeah sure. Anything confidential in there though stored in the variables?

 

UPDATE: I've sorted it out now. There were a few dubious files that i've now removed, they may have been down to 2nd instances at some time or failed updates? Either way i had a load of xxx(1).xml files that i've deleted seems to have cleared up the 'installed apps' view nicely.

 

my-radarr.xml

my-radarr(1).xml  <--deleted.

my-radarr.bak

 

@squid - Is there any official documentation for creating containers from scratch using dockerfiles that you want accessible through CA docker apps? I've had to fudge my own XML file to pull down my container nicely... (This was after i noticed the issue with dupes in my 'installed app' view :) )

 

Edited by thestraycat

Not so explicit.  You're basically just entering into the xml everything that would be listed in the docker run command if the container documents it.  Beyond that, I highly recommend to not create your own xml.  Just go to Docker and Add Container and then enter the info into the template.  Manually doing the XML is error prone.

  • Author

Thanks - So are you saying the XML is auto generated at the time of 'adding a new container' from the Community Applications plugin? As opposed to being made independantly...

Edited by thestraycat
info added

Yes.  Every time you create or modify a template, the XML gets created accordingly.  Ideally you would also enable Template Authoring Mode in Settings - Docker (with service stopped) to give you even more options.

  • Author

Thanks for the info - Yup already running the template authoring mode.

 

Trying to understand why some containers are available directly through the search in CA and other needs you to maually click on "view dockerhub"?

 

I thought this was the difference between 'compliant with unraid' and 'everything else on dockerhub'

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.