[Plugin] Docker Folder


Recommended Posts

3 hours ago, TDA said:

Hello,

For a couple of weeks now, every time I go to the VMs tab I receive following warning:

 

"read_folders error

looks like migration is running wild. Please report this on the forums"

 

Could someone help me please? 🙂

C̶o̶u̶l̶d̶ ̶y̶o̶u̶ ̶a̶t̶t̶a̶c̶h̶ ̶/̶b̶o̶o̶t̶/̶c̶o̶n̶f̶i̶g̶/̶p̶l̶u̶g̶i̶n̶s̶/̶d̶o̶c̶k̶e̶r̶.̶f̶o̶l̶d̶e̶r̶/̶f̶o̶l̶d̶e̶r̶s̶-̶v̶m̶.̶j̶s̶o̶n̶ ̶a̶n̶d̶ ̶f̶o̶l̶d̶e̶r̶s̶-̶v̶m̶.̶b̶a̶c̶k̶u̶p̶.̶j̶s̶o̶n̶ ̶i̶n̶ ̶y̶o̶u̶r̶ ̶n̶e̶x̶t̶ ̶p̶o̶s̶t̶
̶Y̶o̶u̶ ̶c̶a̶n̶ ̶j̶u̶s̶t̶ ̶d̶e̶l̶e̶t̶e̶ ̶t̶h̶e̶ ̶f̶o̶l̶d̶e̶r̶s̶-̶v̶m̶.̶j̶s̶o̶n̶ ̶f̶i̶l̶e̶ ̶a̶f̶t̶e̶r̶ ̶b̶u̶t̶ ̶y̶o̶u̶ ̶w̶i̶l̶l̶ ̶l̶o̶s̶t̶ ̶y̶o̶u̶r̶ ̶v̶m̶ ̶f̶o̶l̶d̶e̶r̶s̶ ̶i̶f̶ ̶y̶o̶u̶ ̶h̶a̶d̶ ̶a̶n̶y̶ ̶s̶o̶r̶r̶y̶
̶2̶ ̶q̶u̶e̶s̶t̶i̶o̶n̶s̶ ̶i̶f̶ ̶y̶o̶u̶ ̶d̶o̶n̶t̶ ̶m̶i̶n̶d̶,̶ ̶d̶i̶d̶ ̶y̶o̶u̶ ̶h̶a̶v̶e̶ ̶a̶n̶y̶ ̶v̶m̶ ̶f̶o̶l̶d̶e̶r̶s̶ ̶a̶n̶d̶ ̶a̶r̶e̶ ̶y̶o̶u̶ ̶o̶n̶ ̶t̶h̶e̶ ̶l̶a̶t̶e̶s̶t̶ ̶v̶e̶r̶s̶i̶o̶n̶ ̶o̶f̶ ̶t̶h̶e̶ ̶p̶l̶u̶g̶i̶n̶?̶

edit: just tried to install the first version that introduced vm folders then updated to latest without any folders (always tested with *sigh) an i got the error yeahhh :)
Just pushed an update that should fix the error, and sorry for not fixing this sooner

Edited by GuildDarts
Fix for issue hopefully
Link to comment
On 7/27/2021 at 12:38 PM, GuildDarts said:

C̶o̶u̶l̶d̶ ̶y̶o̶u̶ ̶a̶t̶t̶a̶c̶h̶ ̶/̶b̶o̶o̶t̶/̶c̶o̶n̶f̶i̶g̶/̶p̶l̶u̶g̶i̶n̶s̶/̶d̶o̶c̶k̶e̶r̶.̶f̶o̶l̶d̶e̶r̶/̶f̶o̶l̶d̶e̶r̶s̶-̶v̶m̶.̶j̶s̶o̶n̶ ̶a̶n̶d̶ ̶f̶o̶l̶d̶e̶r̶s̶-̶v̶m̶.̶b̶a̶c̶k̶u̶p̶.̶j̶s̶o̶n̶ ̶i̶n̶ ̶y̶o̶u̶r̶ ̶n̶e̶x̶t̶ ̶p̶o̶s̶t̶
̶Y̶o̶u̶ ̶c̶a̶n̶ ̶j̶u̶s̶t̶ ̶d̶e̶l̶e̶t̶e̶ ̶t̶h̶e̶ ̶f̶o̶l̶d̶e̶r̶s̶-̶v̶m̶.̶j̶s̶o̶n̶ ̶f̶i̶l̶e̶ ̶a̶f̶t̶e̶r̶ ̶b̶u̶t̶ ̶y̶o̶u̶ ̶w̶i̶l̶l̶ ̶l̶o̶s̶t̶ ̶y̶o̶u̶r̶ ̶v̶m̶ ̶f̶o̶l̶d̶e̶r̶s̶ ̶i̶f̶ ̶y̶o̶u̶ ̶h̶a̶d̶ ̶a̶n̶y̶ ̶s̶o̶r̶r̶y̶
̶2̶ ̶q̶u̶e̶s̶t̶i̶o̶n̶s̶ ̶i̶f̶ ̶y̶o̶u̶ ̶d̶o̶n̶t̶ ̶m̶i̶n̶d̶,̶ ̶d̶i̶d̶ ̶y̶o̶u̶ ̶h̶a̶v̶e̶ ̶a̶n̶y̶ ̶v̶m̶ ̶f̶o̶l̶d̶e̶r̶s̶ ̶a̶n̶d̶ ̶a̶r̶e̶ ̶y̶o̶u̶ ̶o̶n̶ ̶t̶h̶e̶ ̶l̶a̶t̶e̶s̶t̶ ̶v̶e̶r̶s̶i̶o̶n̶ ̶o̶f̶ ̶t̶h̶e̶ ̶p̶l̶u̶g̶i̶n̶?̶

edit: just tried to install the first version that introduced vm folders then updated to latest without any folders (always tested with *sigh) an i got the error yeahhh :)
Just pushed an update that should fix the error, and sorry for not fixing this sooner

 

No Problem at all, thanks for fixing 🙂

Link to comment
13 minutes ago, Linguafoeda said:

is there a way to rearrange the order on the dashboard? I rearranged the order on my main Docker tab but it doesn't seem to carry through to the main dashboard page

Odd that its not the same on both pages, could you try and reset sort order on the docker page maybe that might help
 brave_NUJQ5oua1V.thumb.png.7ff2f28d5344ac95793db90aa6b2583c.png

Link to comment
43 minutes ago, Linguafoeda said:

 

Just tried that, didn't change anything.

Just played around a bit to try and reproduce the bug, got it to mess up a bit if i removed a container but was fixed for me when i reset sort order so maybe not the same bug.

The thing is i cant think of anything different in how the containers are loaded on the dashboard compared to the docker page very weird
if you open the file /boot/config/plugins/dockerMan/userprefs.cfg does that match the sort order of the docker page or the dashboard?

edit: t̶h̶i̶n̶k̶ ̶i̶ ̶m̶a̶y̶b̶e̶ ̶f̶o̶u̶n̶d̶ ̶i̶t̶,̶ ̶d̶o̶ ̶y̶o̶u̶ ̶h̶a̶p̶p̶e̶n̶ ̶t̶o̶ ̶h̶a̶v̶e̶ ̶a̶ ̶f̶o̶l̶d̶e̶r̶ ̶t̶h̶a̶t̶ ̶u̶s̶e̶s̶ ̶t̶h̶e̶ ̶r̶e̶g̶e̶x̶ ̶o̶p̶t̶i̶o̶n̶ ̶j̶u̶s̶t̶ ̶t̶i̶r̶e̶d̶ ̶t̶h̶a̶t̶ ̶a̶n̶d̶ ̶g̶o̶t̶ ̶a̶ ̶r̶e̶s̶u̶l̶t̶ ̶t̶h̶a̶t̶ ̶m̶a̶t̶c̶h̶ ̶w̶h̶a̶t̶ ̶y̶o̶u̶'̶r̶e̶ ̶d̶e̶s̶c̶r̶i̶b̶i̶n̶g̶.̶  I was wrong after i refreshed the page it when back to normal *sigh

Edited by GuildDarts
Link to comment
29 minutes ago, GuildDarts said:

Just played around a bit to try and reproduce the bug, got it to mess up a bit if i removed a container but was fixed for me when i reset sort order so maybe not the same bug.
T̶h̶e̶ ̶t̶h̶i̶n̶g̶ ̶i̶s̶ ̶i̶ ̶c̶a̶n̶t̶ ̶t̶h̶i̶n̶k̶ ̶o̶f̶ ̶a̶n̶y̶t̶h̶i̶n̶g̶ ̶d̶i̶f̶f̶e̶r̶e̶n̶t̶ ̶i̶n̶ ̶h̶o̶w̶ ̶t̶h̶e̶ ̶c̶o̶n̶t̶a̶i̶n̶e̶r̶s̶ ̶a̶r̶e̶ ̶l̶o̶a̶d̶e̶d̶ ̶o̶n̶ ̶t̶h̶e̶ ̶d̶a̶s̶h̶b̶o̶a̶r̶d̶ ̶c̶o̶m̶p̶a̶r̶e̶d̶ ̶t̶o̶ ̶t̶h̶e̶ ̶d̶o̶c̶k̶e̶r̶ ̶p̶a̶g̶e̶ ̶v̶e̶r̶y̶ ̶w̶e̶i̶r̶d̶
̶i̶f̶ ̶y̶o̶u̶ ̶o̶p̶e̶n̶ ̶t̶h̶e̶ ̶f̶i̶l̶e̶ ̶/̶b̶o̶o̶t̶/̶c̶o̶n̶f̶i̶g̶/̶p̶l̶u̶g̶i̶n̶s̶/̶d̶o̶c̶k̶e̶r̶M̶a̶n̶/̶u̶s̶e̶r̶p̶r̶e̶f̶s̶.̶c̶f̶g̶ ̶d̶o̶e̶s̶ ̶t̶h̶a̶t̶ ̶m̶a̶t̶c̶h̶ ̶t̶h̶e̶ ̶s̶o̶r̶t̶ ̶o̶r̶d̶e̶r̶ ̶o̶f̶ ̶t̶h̶e̶ ̶d̶o̶c̶k̶e̶r̶ ̶p̶a̶g̶e̶ ̶o̶r̶ ̶t̶h̶e̶ ̶d̶a̶s̶h̶b̶o̶a̶r̶d̶,̶ ̶a̶l̶s̶o̶ ̶o̶n̶ ̶t̶h̶e̶ ̶d̶a̶s̶h̶b̶o̶a̶r̶d̶ ̶d̶o̶ ̶y̶o̶u̶ ̶h̶a̶v̶e̶ ̶s̶e̶t̶ ̶t̶o̶ ̶d̶i̶s̶p̶l̶a̶y̶ ̶s̶t̶a̶r̶t̶e̶d̶ ̶o̶n̶l̶y̶ ̶o̶r̶ ̶a̶l̶l̶ ̶a̶p̶p̶s̶?̶

edit: think i maybe found it, do you happen to have a folder that uses the regex option just tired that and got a result that match what you're describing. In any case will try and fix it hopefully it will work for you :)

 

All my 4 folders don't have a regex command, weird. Really appreciate you looking into this :)

Link to comment
1 minute ago, Linguafoeda said:

 

All my 4 folders don't have a regex command, weird. Really appreciate you looking into this :)

Could you check if if /boot/config/plugins/dockerMan/userprefs.cfg matches the sort order of the docker page or the dashboard?
Also are all you containers in folders or are there some that are not maybe a screenshot of your dashboard might help me :)
Sorry about the confusing edit of my last post thought i had reproduced the issue but after a refresh of the page it was fixed :(

Link to comment
3 minutes ago, GuildDarts said:

Could you check if if /boot/config/plugins/dockerMan/userprefs.cfg matches the sort order of the docker page or the dashboard?
Also are all you containers in folders or are there some that are not maybe a screenshot of your dashboard might help me :)
Sorry about the confusing edit of my last post thought i had reproduced the issue but after a refresh of the page it was fixed :(

 

how do i open that .cfg file? i tried to navigate using Midnight Commander and Krusader but was not able to access file (MC gives me permission denied; Krusader shows /boot/ as empty).

 

all my containers are in a folder. See here for screenshot.

Link to comment
9 minutes ago, Linguafoeda said:

 

how do i open that .cfg file? i tried to navigate using Midnight Commander and Krusader but was not able to access file (MC gives me permission denied; Krusader shows /boot/ as empty).

 

all my containers are in a folder. See here for screenshot.

Dont think you can using Krusader dont know why tho, i have /boot mounted as a smb share for easy accesses, but you could use the terminal.
Whats interesting is that in your screenshots the folders themselves have the same sort order but its the containers inside that is messed up. Do you use the "Start expanded on Dashboard" and "Start expanded on Docker/VM page" or did you do it manually for the screenshot?
PS: nice screenshot made it really easy to see the issue :)

Edited by GuildDarts
Link to comment
1 minute ago, GuildDarts said:

Dont think you can using Krusader dont know why tho, i have /boot mounted as a smb share for easy accesses, but you could use the terminal.
Whats interesting is that in your screenshots the folders themselves have the same sort order but its the containers inside that a messed up. Do you use the "Start expanded on Dashboard" and "Start expanded on Docker/VM page" or did you do it manually for the screenshot?
PS: nice screenshot made it really easy to see the issue :)

 

yep both are set to start expanded for all folders. Do you happen to know the right command to be able to access that .cfg file from terminal?

Link to comment
Just now, Linguafoeda said:

 

yep both are set to start expanded for all folders. Do you happen to know the right command to be able to access that .cfg file from terminal?

either 'cat /boot/config/plugins/dockerMan/userprefs.cfg' to just echo it in terminal or 'nano /boot/config/plugins/dockerMan/userprefs.cfg' to edit the file :)

Link to comment
2 minutes ago, GuildDarts said:

either 'cat /boot/config/plugins/dockerMan/userprefs.cfg' to just echo it in terminal or 'nano /boot/config/plugins/dockerMan/userprefs.cfg' to edit the file :)

 

Thank you :)

 

See this link for the .cfg output (matches the order i manually specified in the Docker tab).

Edited by Linguafoeda
Link to comment
20 minutes ago, Jurak said:

So a few minutes ago this started happening with the docker folders. Image below. 

image.thumb.png.fe5d1d1eb7502a0187833a03a9799f7c.png

 

I have uninstalled the plugin and reinstalled it and it just stays like this. Let me know if there is any other info you need to help me with this.

Never mind i figured it out and its now displaying the way it was before.

Link to comment
  • 2 weeks later...
1 minute ago, TexasUnraid said:

I love this plugin! Been needing this for a long time!

 

Ok, I must be missing something obvious. How do I upload the icons to the sever so that the "pick" button will work?

 

I want to upload them all so I don't have to copy/paste URL's everytime.

You can press the upload button and upload for that one folder, there is no way to view all your uploaded folder icons.
brave_OaRSsXI5X2.thumb.png.5f26237e562cbb23ccc040435ba57055.png

Link to comment
Just now, GuildDarts said:

You can press the upload button and upload for that one folder, there is no way to view all your uploaded folder icons.
brave_OaRSsXI5X2.thumb.png.5f26237e562cbb23ccc040435ba57055.png

 

If you click the icon on the left of that box it pulls up a menu that seems to be an icon selection box with a pick and cancel button.

 

Seems to be a menu to select from locally stored icons (which makes total sense).

 

What is that menu for if it is not for picking icons?

Link to comment
Just now, TexasUnraid said:

 

If you click the icon on the left of that box it pulls up a menu that seems to be an icon selection box with a pick and cancel button.

 

Seems to be a menu to select from locally stored icons (which makes total sense).

 

What is that menu for if it is not for picking icons?

Ah, that menu shows a selection of icons for the currently selected containers/vms
brave_Y5xRBMqbn2.png.007d804ce200b5b7c53f113feb06ed7a.png
Maybe i could expand that menu to have one page for the currently selected containers/vms, another for all your uploaded icons and one showing the icons for the icon collection

Link to comment
11 minutes ago, GuildDarts said:

Ah, that menu shows a selection of icons for the currently selected containers/vms
brave_Y5xRBMqbn2.png.007d804ce200b5b7c53f113feb06ed7a.png
Maybe i could expand that menu to have one page for the currently selected containers/vms, another for all your uploaded icons and one showing the icons for the icon collection

 

Ah I see. Yeah either adding another page or a section below those with icons that can be uploaded to the USB would be fantastic.

 

Call me old school but I like to have everything possible local. Plus it is just simpler and quicker.

 

If you wanted to add the ability to browse local icons to individual dockers as well that would be cool. I tend to do a lot of custom containers and it is annoying to do the icons right now.

Link to comment
5 hours ago, ungeek67 said:

Great plugin! Would it be possible to expand the folder regex functionality to evaluate a specific label?

 

Will make new containers much easier to manage with less manual tasks after initial set up, especially with 6.10RC1 being more welcoming to docker compose users.

Good idea, will see if i cant find a good way to get label data. Would making a label e.g. dockerFolder.folderId = someid and any container with that label gets added to the folder with said id achieve the same result you're after?
Think that would be a bit cleaner as you only have to make a folder then add the label to the folder

Link to comment

Been messing around getting this setup with my ~70 dockers today.

 

I am curious, what do the Add button and divider options do? I have tried adding them but can't see any difference? It looks like you could add a button that runs a command in the docker, this would be really handy for a few dockers that I have to tweak some manual stuff when they are updated.

 

Some of the options are missing descriptions, would be cool to add in some descriptions to explain what they do. I had to toggle some of them on and off a few times to figure out what they did.

 

Otherwise VERY nice work. I have been having to scroll through all 70 dockers for months and it gets old lol.

Edited by TexasUnraid
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.