Jump to content

[Request] Auto Docker Port Finder


neruve

Recommended Posts

Hello all, making a plug-in is outside of my current skill set. BUT I have an idea for a fantastic one if someone wants to whip it up.

 

On the docker template page. It would be nice if there was another button next to any 'PORT' field that was like 'AUTO' and it would poll all ports that are currently being use and automatically toss one in there that isn't. Maybe start at 5000 and just auto increment to the first one? Or even if you wanted to do random between 1000 and 9999 or something. I don't think the logic would be hard and I think its a feature that would be be welcomed by all. How many times are we gonna have to ctrl+f a port number to see if you can use it when adding a new container.

Link to comment
10 minutes ago, neruve said:

Hello all, making a plug-in is outside of my current skill set. BUT I have an idea for a fantastic one if someone wants to whip it up.

 

On the docker template page. It would be nice if there was another button next to any 'PORT' field that was like 'AUTO' and it would poll all ports that are currently being use and automatically toss one in there that isn't. Maybe start at 5000 and just auto increment to the first one? Or even if you wanted to do random between 1000 and 9999 or something. I don't think the logic would be hard and I think its a feature that would be be welcomed by all. How many times are we gonna have to ctrl+f a port number to see if you can use it when adding a new container.

  

Something similar to this -

 

image.png.8a8772c069b313259c9ca67801573279.png

Link to comment
6 minutes ago, Squid said:

You can also click Show Docker Allocations when installing to show the ports currently in use

 

That is correct. That's how I currently do it. When you have 20 containers, and are using 50 ports, the easiest way right now is to expand show allocations and then ctrl+f the port you wanna use and see how many times it finds it on the page. It was just something that may be relatively simple. I would try to do it myself but there really isn't any documentation as to how to create plugins for unraid or anything.

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.

×
×
  • Create New...