Jump to content
Bjonness406

[Closed][6.5.0] Adding new ports to docker

5 posts in this topic Last Reply

Recommended Posts

Description:
Then trying to add a new port when network type is set to Custom it is not possible to add container port

How to reproduce:
Try to add a new port then network type is set to Custom.

Expected results:
Shows the Container port field when network type is set to Custom (like it does on network type bridge)

Actual results: 
Not showing the conatiner port field 
Edited by Bjonness406

Share this post


Link to post

With custom networks there is no port mapping required.

 

Share this post


Link to post
28 minutes ago, bonienl said:

With custom networks there is no port mapping required.

 

Ok, I see.

Is there any documention on this on the unraid manual? I want to read a bit more about this, without going in very deep.

 

How does unraid/docker find out which ports to map then? Does it take the ones from "Expose" part on the docker file?
How will I then add another port if neccesary without editing the docker file itself?

 

Maybe it would be nice to grey out the port field then using custom networks? If that is not too much work.

Share this post


Link to post
12 hours ago, Bjonness406 said:

Ok, I see.

Is there any documention on this on the unraid manual? I want to read a bit more about this, without going in very deep.

 

How does unraid/docker find out which ports to map then? Does it take the ones from "Expose" part on the docker file?
How will I then add another port if neccesary without editing the docker file itself?

 

Maybe it would be nice to grey out the port field then using custom networks? If that is not too much work.

 

You could say that it's running like setting network to host mode, except not using hosts IP. This means all ports are open and doesn't need to be mapped. 

 

You don't need to do anything to use a new port. Just set the new port in the software you run in the container and it should work. 

Share this post


Link to post
11 hours ago, saarg said:

 

You could say that it's running like setting network to host mode, except not using hosts IP. This means all ports are open and doesn't need to be mapped. 

 

You don't need to do anything to use a new port. Just set the new port in the software you run in the container and it should work. 

Ah, I see.
Thanks for the help guys. Closing this now B|

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.