Enable hostname usage for my docker containers


Evidenz

Recommended Posts

I am currently fighting with the situation that I have multiple docker containers which I would like to open with simple hostnames.

 

The current setup is:

  • I have a local domain, for simplicity purpose I will call it LOCALDOMAIN
  • Unraid is reachable via unraid.LOCALDOMAIN from my internal network
  • pfSense is running on dedicated hardware, DHCP & DNS services are used
  • Docker container is started with the extra parameter --hostname dockername.unraid.LOCALDOMAIN
  • Container webGUI is reachable via TCP port 80
  • Container is set to have a fixed IP address on my local network
  • pfSense is configured to link the docker FQDN to the container's fixed IP address

 

When I lookup the FQDN I also get back the correct IP address. However, when I try to access the FQDN I am simply redirected to my unraid webGUI (sure it also runs on TCP port 80). As long as I directly open the IP address everything is fine.

 

I would like to get the solution working that rather opening my unraid FQDN + specific ports, I will be able to open my Docker containers via dedicated FQDNs. 

 

I am pretty sure that I am overseeing some basic routing/network fact that actually prevents what I want but as said, I am for sure just blind to it.

Link to comment
  • 1 year later...

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.