2twisty Posted February 26, 2019 Share Posted February 26, 2019 (edited) TL;DR: "Open web gui" menu option does not link to the correct IP:Port, but can access by typing IP:port manually. Here's the example I'm using so someone might try to duplicate it: My Network info: 192.168.3.0/24 GW: 192.168.3.1, pfSense 2.4.4-RELEASE-p2 on actual separate hardware DCHP from pfSense, range 192.168.3.100-199 DNS from pfSense UnRAID 6.6.7 box @ 192.168.3.21 I have several containers using the standard bridge mode that maps ports from the host IP to the 172.16 private docker subnet. I want some of my containers to have unique IPs on my network. I added the OwnCloud container from Owncloud. I chose network Custom:br0 and set the static IP to 192.168.3.249. I left all the default options in the container. For reference, it SAYS that it will map port 8000 to 80. Then I complete the config and return to the docker menu, and it's running. The docker screen then says its listening on port 80, but the "open web gui" option tries to open on port 8000. The Open Web Gui choice results in a "connection refused" error. If I manually type the address using port 80, it loads the web gui as expected. If I go back into the container config and specify port 80, the "open web gui" option STILL tries to open port 8000. See attached image..... Edited February 26, 2019 by 2twisty clarification Quote Link to comment
Squid Posted February 26, 2019 Share Posted February 26, 2019 When you edit the container, and switch to advanced view, what is the WEBUI entry?Sent via telekinesis Quote Link to comment
2twisty Posted February 26, 2019 Author Share Posted February 26, 2019 It says: http://[IP]:[PORT:8000]/ So, I assume that I should change this to say: http://[IP]:[PORT:80]/ Still curious that it didn't update it on its own. Quote Link to comment
Squid Posted February 26, 2019 Share Posted February 26, 2019 It says: http://[iP]:[PORT:8000]/ So, I assume that I should change this to say: http://[iP]:[PORT:80]/ Still curious that it didn't update it on its own.That entry means to go to whatever container port 8000 is mapped to in the host Sent via telekinesis Quote Link to comment
2twisty Posted February 26, 2019 Author Share Posted February 26, 2019 That doesn't really answer my question. If I change the WebUI entry, will that fix the UI problem I described? If so, why doesn't it update that automatically when I change the port settings in Basic View? Quote Link to comment
Squid Posted February 26, 2019 Share Posted February 26, 2019 Because there is no port mapped to 8000 due to you not running in bridge mode, so the system will always go to 8000.Unraid does not change that entry. It just adjusts for whatever the IP and Port is based upon the entrySent via telekinesis Quote Link to comment
Squid Posted February 26, 2019 Share Posted February 26, 2019 (edited) And it's a mistake in the template from @Bungy. It should have been [PORT:80] Edited February 26, 2019 by Squid Quote Link to comment
2twisty Posted February 26, 2019 Author Share Posted February 26, 2019 OK. I decided to experiment and changed it to PORT:80, and it fixed the problem. Since I've had similar problems with containers in the past, I guess this is a common problem. I've been trying to get separate IPs working for a long time, but only just now noticed the mapping issue. Thanks for the info, and hopefully this post will help someone else. Quote Link to comment
ljm42 Posted February 26, 2019 Share Posted February 26, 2019 *mind blown* I had no idea that was how that field worked. that is pretty cool. Quote Link to comment
Recommended Posts
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.