Docker Ports not exposed


Gizmoh

Recommended Posts

Hello,

 

i've installed a custom Docker countainer which exposes 8 different Ports (8083, 8084, 8085, 2222, 7072, 9001, 8060, 8099). The container is in host mode.

I can reach the webinterface of the docker application on port 8083. Ther Ports 8084, 8085 and 8099 should also give access to the webinterface but i only get a "ERR_CONNECTION_REFUSED" error in my browser.

 

On the unraid server i get this netstat output for the ports:

root@Unraid:~# netstat -lptun | grep 8084
tcp        0      0 127.0.0.1:8084          0.0.0.0:*               LISTEN      17145/perl
root@Unraid:~# netstat -lptun | grep 8083
tcp        0      0 0.0.0.0:8083            0.0.0.0:*               LISTEN      17145/perl

 

So why is the port 8083 bound to 0.0.0.0 and the 8084 Port bound to 127.0.0.1? The configuration in the Docker file (https://github.com/Gizmoh1683/fhem_unraid/blob/master/Dockerfile): ("EXPOSE 2222 7072 8083 8084 8085 9001 8099") and the docker configuration in unraid for the port that works an the other ports is the same: 

image.thumb.png.a4565c321d6666a5ce145a5eaccba7b5.png

What can i do to fix this?

 

Thanks

Gizmoh

Link to comment
5 hours ago, Gizmoh said:

The container is in host mode.

Not that I can answer the question per se, but will state that the time and effort in applying port mappings to a container that runs in host mode is a complete waste of time.  The container in host mode has the ability to open any particular port which it may or may not need, and port mappings do not affect it at all (ie: look at any of the Plex Containers -> not a single port is mapped)

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.