Jump to content

Some containers using a custom br0 network show port mappings, and some do not


Go to solution Solved by ich777,

Recommended Posts

Why do some containers using a custom br0 network show port mappings, and others do not?

 

I understand that when you use a custom network, the port mappings no longer matter. But I'm confused on why some containers in the unRAID GUI are showing port mappings, and others are not, for the same br0 network.

 

For those containers that don't list them, is there a way for me to get them showing up, so that things are consistent in the GUI?

 

See the attached screenshot. The `swag` and `Plex-Media-Server` docker containers use my br0 network and have port mappings defined. But `homeasistant` has no port mappings showing.

 

image.thumb.png.0668f787758726fad7584b5203abdf4a.png

  • Upvote 2
Link to comment
  • 4 months later...
  • 2 weeks later...
  • Solution
On 4/3/2024 at 5:21 AM, guitarlp said:

Why do some containers using a custom br0 network show port mappings, and others do not?

On 8/30/2024 at 3:59 PM, pkoasne said:

Bumping this thread. Thanks

This is actually a visual bug in the WebUI from Unraid and is caused because some maintainers exposing ports in their Dockerfiles, while others do not.

The TLDR is at the bottom. If you want more details, read on...

 

The technical explanation is: if a maintainer exposes Docker ports in his Dockerfile, the exposed ports will be displayed in combination with br0.

If a maintainer doesn't expose a port in his Dockerfile, you will see an empty line, as is the case for your container "homeassistant."

 

However, the current implementation in the WebUI is not ideal and can be misleading. The reason is that if you assign br0 to a container, you are actually exposing all ports and the container then behaves similarly to a computer on your local network, with all ports exposed and reachable from anywhere in your network.

 

For example, if a maintainer exposes port 8123 in his Dockerfile, and you decide to change that port in the configuration of the app running inside the container to 1111, the WebUI will still display 8123 which is wrong.

 

This visual bug will be fixed in the next beta version of Unraid 7 and will look like this:

grafik.png.7df872c1c7c04e54cb931519abe407c0.png
grafik.png.6bb8d1fb4426997516dd0e0e396b81f4.png

 

As you can see in the screenshot above for the Firefox container, which uses br0, the WebUI will now correctly display "all," as all ports are now reachable.

 

TLDR: If you are using a container in br0, all ports are actually exposed. The way it is currently displayed in the WebUI is incorrect. This will be fixed in the next Unraid 7 beta.

 

  • Like 2
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...