Jump to content
GuildDarts

[Plugin] Docker Folder

364 posts in this topic Last Reply

Recommended Posts

Posted (edited)

Docker Folder lets you create folders for docker containers to help with your organization, especially useful if you're using docker-compose.

How to install:

Can be found in Community Applications
or

Open Plugins / Install Plugin and use this URL:
https://raw.githubusercontent.com/GuildDarts/unraid-plugin-docker.folder/master/plugins/docker.folder.plg


After installation, a new button named "add folder" should appear at the bottom of the docker tab next to "add container".

Screenshots

before-after.png

        GooseGooese 


Icons
In case your looking for some fancy icons for your fancy new folders, check out @hernandito thread below 


If you find any problems, please report them here.

Edited by GuildDarts
  • Like 2
  • Thanks 3

Share this post


Link to post

This is now available within CA.

 

However, due to a bug with the plugin currently, it will not allow you to create any folders if you have your server set up in "Tabbed Mode" (Settings - Display Settings).

 

Once you have set up the folders however (in Non-Tabbed Mode), you can switch back to tabbed mode and the plugin will still operate (just not allow you to create any more folders)

 

Beyond that, this looks like an excellent addition (once the initial issues are ironed out), and should fulfill a need that quite a few people have been asking about.

Share this post


Link to post
10 minutes ago, jonathanm said:

How do you edit an existing folder after you created it?

By hitting the edit button on the context menu?

Share this post


Link to post

I do see a few issues though.  There's no enforcement of having to name the folder.  And if it's not given a name, then some strange things can happen with other groupings / it's own group.  

 

I'd prefer that "Edit" and "Remove" on the context menu were named something else, as "Remove" in particular tends to mean remove the container, not remove the folder.

 

The Start / Stop on the context don't seem to consistently appear under all circumstances.

Share this post


Link to post
26 minutes ago, Squid said:

By hitting the edit button on the context menu?

image.png.45b4f19f2f684c8374d6b1f9cdd41483.png

Share this post


Link to post

@Squid publish a predefined folder to CA when? :P

I definitely want to play with this plugin when i can

Share this post


Link to post
2 hours ago, jonathanm said:

image.png.45b4f19f2f684c8374d6b1f9cdd41483.png

Is that a group?  Should be something like 5 of 5 and a Chevron underneath it.   If it's totally messed, delete the folders.json file on the flash

Share this post


Link to post
Posted (edited)

By not adding (more like forgetting) to add a icon, the folder actually never shows, and are nowhere to be found in the gui. Deleting the folder in the json squid mentioned does not resolve the issue, only deleting the whole file helped.

Edit: seems like it was not the missing icon, rather the space in the name

Edited by Roxedus

Share this post


Link to post

Just updated, thanks for all the feedback

Folder name is now required and does not allow spaces
The edit/remove now include folder at the end
 

16 hours ago, Squid said:

The Start / Stop on the context don't seem to consistently appear under all circumstances.

One thing that springs to mind might be that "Docker_Default" has a space at the end "Docker_Default "
 

 

14 hours ago, Squid said:
16 hours ago, jonathanm said:

image.png.45b4f19f2f684c8374d6b1f9cdd41483.png

Is that a group?  Should be something like 5 of 5 and a Chevron underneath it.   If it's totally messed, delete the folders.json file on the flash

Did this fix it for you?

Share this post


Link to post
2 minutes ago, GuildDarts said:

Did this fix it for you?

I haven't experimented further yet, I was anticipating a flurry of update / bugfix / activity and figured I'd wait for the next version to have a play.

Share this post


Link to post

Harmless, but really gets on my OCD though.  If I remove a folder, then I wind up with what is basically a non-existent orphaned image

 

image.png.02a5bf4cd3ef44d71326dad5eb1d2751.png

Share this post


Link to post

Update :D

tianon/true should no longer show up
you can now also upload an icon instead of using a link
 

While testing had the same issue jonathanm experienced, dont know if i fixed what caused it for them but think i fixed what caused it for me.

Share this post


Link to post

I've always wondered when we would have this option to group the dockers for better organization. thank you for all your hard work.

I do have a feature request not sure if it is possible but anyway to have a setting to set certain folders to always be expanded 

Share this post


Link to post

Update
change the way buttons work, you can now have as many or as few buttons as you want.

examplenew buttons example

A folder can now also start expanted (hope this is kinda what you wanted @poniz ^_^)

Share this post


Link to post

 

On 3/22/2020 at 5:26 AM, GuildDarts said:

@poniz Just so i dont misunderstand
You mean on the docker tab, start expanded?

image.thumb.png.91e4edb4705343a2f2a7bf24af53d6e5.png

 

Yes exactly, some folders I would just like expanded at first glance. Sorry for the late reply.

I just updated the plugin i'll let you know how it goes. Thank you!!

Share this post


Link to post

after updating the plugin the docker page would just load and load, i removed plugin, stopped/started docker and now my dockers are almost greyed out in the folder option. They are all running not sure what happened withe docker page after update

 

image.png.dbb4af94ab235f8596598db613359da8.png

 

 

here is some of the log after the plugin updated to when i stopped docker.

 

Mar 24 12:57:59 XENON-NAS webGUI: Successful login user root from 192.168.1.60
Mar 24 12:58:46 XENON-NAS emhttpd: cmd: /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin update docker.folder.plg
Mar 24 12:58:46 XENON-NAS root: plugin: running: anonymous
Mar 24 12:58:46 XENON-NAS root: plugin: creating: /boot/config/plugins/docker.folder/docker.folder-2020.03.24-x86_64-1.txz - downloading from URL https://raw.github.com/GuildDarts/unraid-plugin-docker.folder/master/archive/docker.folder-2020.03.24-x86_64-1.txz
Mar 24 12:58:47 XENON-NAS root: plugin: checking: /boot/config/plugins/docker.folder/docker.folder-2020.03.24-x86_64-1.txz - MD5
Mar 24 12:58:47 XENON-NAS root: plugin: running: /boot/config/plugins/docker.folder/docker.folder-2020.03.24-x86_64-1.txz
Mar 24 12:58:48 XENON-NAS root: plugin: running: anonymous
Mar 24 13:00:25 XENON-NAS autofan: Highest disk temp is 33C, adjusting fan speed from: OFF (0% @ 0rpm) to: 102 (40% @ 576rpm)
Mar 24 13:06:32 XENON-NAS nginx: 2020/03/24 13:06:32 [error] 30935#30935: *1079892 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.1.60, server: , request: "POST /plugins/dynamix.docker.manager/include/Events.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock", host: "192.168.1.10:7800", referrer: "http://192.168.1.10:7800/Docker"
Mar 24 13:07:59 XENON-NAS webGUI: Successful login user root from 192.168.1.60
Mar 24 13:08:13 XENON-NAS webGUI: Successful login user root from 192.168.1.60
Mar 24 13:10:30 XENON-NAS autofan: Highest disk temp is 35C, adjusting fan speed from: 102 (40% @ 617rpm) to: 136 (53% @ 789rpm)
Mar 24 13:10:47 XENON-NAS webGUI: Successful login user root from 192.168.1.60
Mar 24 13:12:40 XENON-NAS nginx: 2020/03/24 13:12:40 [error] 30935#30935: *1081034 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.1.60, server: , request: "POST /plugins/community.applications/scripts/notices.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock", host: "192.168.1.10:7800", referrer: "http://192.168.1.10:7800/Docker"
Mar 24 13:12:40 XENON-NAS nginx: 2020/03/24 13:12:40 [error] 30935#30935: *1081138 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.1.60, server: , request: "GET /plugins/dynamix.docker.manager/include/DockerContainers.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock", host: "192.168.1.10:7800", referrer: "http://192.168.1.10:7800/Docker"
Mar 24 13:12:44 XENON-NAS emhttpd: cmd: /usr/local/emhttp/plugins/dynamix.plugin.manager/scripts/plugin remove docker.folder.plg
Mar 24 13:12:44 XENON-NAS root: plugin: running: anonymous
Mar 24 13:12:59 XENON-NAS nginx: 2020/03/24 13:12:59 [error] 30935#30935: *1081163 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 192.168.1.60, server: , request: "POST /plugins/community.applications/scripts/notices.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock", host: "192.168.1.10:7800", referrer: "http://192.168.1.10:7800/Plugins"
Mar 24 13:13:21 XENON-NAS emhttpd: cmd: /usr/local/emhttp/plugins/dynamix/scripts/tail_log syslog
Mar 24 13:14:00 XENON-NAS ool www[7460]: /usr/local/emhttp/plugins/dynamix/scripts/emcmd 'cmdStatus=Apply'
Mar 24 13:14:00 XENON-NAS emhttpd: Starting services...
Mar 24 13:14:00 XENON-NAS emhttpd: shcmd (12812): /etc/rc.d/rc.samba restart
Mar 24 13:14:00 XENON-NAS wsdd[14586]: udp_send: Failed to send udp packet with No such device
Mar 24 13:14:00 XENON-NAS wsdd[14586]: udp_send: Failed to send udp packet with No such device
Mar 24 13:14:00 XENON-NAS wsdd[14586]: udp_send: Failed to send udp packet with No such device
Mar 24 13:14:00 XENON-NAS wsdd[14586]: udp_send: Failed to send udp packet with No such device
Mar 24 13:14:00 XENON-NAS wsdd[14586]: udp_send: Failed to send udp packet with No such device
Mar 24 13:14:00 XENON-NAS wsdd[14586]: udp_send: Failed to send udp packet with No such device
Mar 24 13:14:00 XENON-NAS wsdd[14586]: udp_send: Failed to send udp packet with No such device
Mar 24 13:14:00 XENON-NAS wsdd[14586]: udp_send: Failed to send udp packet with No such device
Mar 24 13:14:00 XENON-NAS wsdd[14586]: udp_send: Failed to send udp packet with No such device
Mar 24 13:14:00 XENON-NAS wsdd[14586]: udp_send: Failed to send udp packet with No such device
Mar 24 13:14:00 XENON-NAS wsdd[14586]: udp_send: Failed to send udp packet with No such device
Mar 24 13:14:00 XENON-NAS wsdd[14586]: udp_send: Failed to send udp packet with No such device
Mar 24 13:14:00 XENON-NAS wsdd[14586]: udp_send: Failed to send udp packet with No such device
Mar 24 13:14:00 XENON-NAS wsdd[14586]: udp_send: Failed to send udp packet with No such device
Mar 24 13:14:00 XENON-NAS wsdd[14586]: udp_send: Failed to send udp packet with No such device
Mar 24 13:14:00 XENON-NAS wsdd[14586]: udp_send: Failed to send udp packet with No such device
Mar 24 13:14:00 XENON-NAS wsdd[14586]: udp_send: Failed to send udp packet with No such device
Mar 24 13:14:00 XENON-NAS wsdd[14586]: udp_send: Failed to send udp packet with No such device
Mar 24 13:14:00 XENON-NAS wsdd[14586]: Failed to send bye with No such device
Mar 24 13:14:02 XENON-NAS root: Starting Samba:  /usr/sbin/smbd -D
Mar 24 13:14:02 XENON-NAS root:                  /usr/sbin/nmbd -D
Mar 24 13:14:02 XENON-NAS root:                  /usr/sbin/wsdd 
Mar 24 13:14:02 XENON-NAS root:                  /usr/sbin/winbindd -D
Mar 24 13:14:03 XENON-NAS root: Stopping docker_load
Mar 24 13:14:03 XENON-NAS emhttpd: shcmd (12820): /etc/rc.d/rc.docker stop

 

Share this post


Link to post

Did you reinstall and is the docker tab loading for you now? if not can you check your browser console for errors

to me this just looks like a theme, i might be wrong tho.

13 minutes ago, poniz said:

image.png.dbb4af94ab235f8596598db613359da8.png

 

Share this post


Link to post
Posted (edited)

yes i do have the theme plugin installed just made some colour adjustments but i cant select any of the dockers. I tried even restore the folders.json file to a back i did the other day and the plugin. still no lock no dockers show up but they are all running. any ideas? 

i have tried using firefox and chrome both with private mode with no luck

Edited by poniz

Share this post


Link to post
Posted (edited)

i think i know whats going on.
replace YOURFOLDERNAME with your folder name and run

docker create --name='YOURFOLDERNAME-folder' --net='none' 'tianon/true:latest'

then go to your docker tab and you should see something like

MJTYNx4b.png.0792f565989dffd01e945d7233075e27.png
copy the "Container ID"

and replace the id in folders.json with it

8bKozCOM.png.780833448d4061026b1cc159e3d74894.png


try it with one first to see if it works (I hope it does)

Edited by GuildDarts
folder not folders

Share this post


Link to post
Posted (edited)

OK no prob, i'll try this now.

 

--

 

so far so good tried it with one folder and it worked like a charm, i'm going to do the rest now. thank you for the quick response, now i was thinking should i update the plugin before restore the IDs ? last i updated the page wouldn't load im on version 6.8.3

 

@GuildDartsthank you for the quick response and solution!

 

--

successfully restore all folders and everything is back to normal... now to update or not to update 🤔

Edited by poniz
update on status

Share this post


Link to post

side note, after restoring one empty folder that i made as a test. I removed it from GUI but when i checked the file it is still there, shouldn't that be removed as well ?

Share this post


Link to post

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.