netman1 Posted November 1, 2015 Share Posted November 1, 2015 My application have a port range which needed to map. However, in Docker container setup -> port mappings, i cannot input port range (e.g. 5000-5100), it prompt "Please enter a number". I know that Docker support port range mapping, is there any way i can setup this in the web GUI ? Quote Link to comment
tinglis1 Posted November 8, 2015 Share Posted November 8, 2015 Another option that doesn't use the gui is to use 'pipework' to assign the docker container its own ip. I have a few of my docker containers set up this way so that I can control the traffic priority with my router. I'm sure a plugin could be created for gui control pipework, but I haven't heard of anything nor do I have the skill set to make one my self. Quote Link to comment
frakman1 Posted November 8, 2020 Share Posted November 8, 2020 On 10/31/2015 at 11:40 PM, Squid said: not at the moment Is there any plan to introduce this? From what I understand, the docker run command supports this easily with something like: docker run -p 7000-8000:7000-8000 but it doesn't sound like the docker template in Unraid allows me to do this. 1 Quote Link to comment
JonathanM Posted November 9, 2020 Share Posted November 9, 2020 4 hours ago, frakman1 said: Is there any plan to introduce this? From what I understand, the docker run command supports this easily with something like: docker run -p 7000-8000:7000-8000 but it doesn't sound like the docker template in Unraid allows me to do this. +1, @Squid, the template supports it just fine AFAIK, but the view on the docker container page is not ideal. It sure would clean up my container page, I have a container that requires about 5 pages of scrolling to get past since each port in the defined range is enumerated individually. The template supports ranges just fine, they just get expanded and fill several pages on the docker advanced view. <Port> <HostPort>5000-5150</HostPort> <ContainerPort>5000-5150</ContainerPort> <Protocol>tcp</Protocol> </Port> <Port> <HostPort>5000-5150</HostPort> <ContainerPort>5000-5150</ContainerPort> <Protocol>udp</Protocol> </Port> etc... etc... Quote Link to comment
Squid Posted November 9, 2020 Share Posted November 9, 2020 Actually, what's going on is that the chevron doesn't appear in advanced view... Quote Link to comment
JonathanM Posted November 9, 2020 Share Posted November 9, 2020 6 hours ago, Squid said: Actually, what's going on is that the chevron doesn't appear in advanced view... 8 hours ago, jonathanm said: they just get expanded and fill several pages on the docker advanced view. Yep, that's what I'm complaining about, but my ideal solution isn't to add the collapsing function, instead just show the range as entered, X-Z/TCP Quote Link to comment
Squid Posted November 9, 2020 Share Posted November 9, 2020 2 hours ago, jonathanm said: Yep, that's what I'm complaining about, but my ideal solution isn't to add the collapsing function, instead just show the range as entered, X-Z/TCP I did a PR to have them collapsed. Maybe in the future I'll swing around and re-look at it to show the range instead. 1 Quote Link to comment
KoNeko Posted August 10, 2021 Share Posted August 10, 2021 Old topic Sure but would be great to beable to add in the template that you can do the multiport thing. Also if the docker is on Custom Br:0 so i can give it a own IP. i cant "redirect" ports like when its on bridge. Quote Link to comment
Squid Posted August 11, 2021 Share Posted August 11, 2021 On 8/10/2021 at 9:30 AM, KoNeko said: Sure but would be great to beable to add in the template that you can do the multiport thing. As the post says you can do this no problems in the template. On 8/10/2021 at 9:30 AM, KoNeko said: Also if the docker is on Custom Br:0 so i can give it a own IP. i cant "redirect" ports like when its on bridge. You can if you create your own custom bridge network via applicable commands. Quote Link to comment
KoNeko Posted August 11, 2021 Share Posted August 11, 2021 56 minutes ago, Squid said: As the post says you can do this no problems in the template. When i edit a template and i add a port i see this when i have it on anything else than bridge. When i put it on bridge i see containerport and Host port. Quote Link to comment
Squid Posted August 12, 2021 Share Posted August 12, 2021 Yes. Container Port say 20000-20010 Host Port say 30000-30010 Quote Link to comment
KoNeko Posted August 13, 2021 Share Posted August 13, 2021 On 8/12/2021 at 9:22 AM, Squid said: Yes. Container Port say 20000-20010 Host Port say 30000-30010 Yes i know i can do that with the second picture. But in the first one i can only enter a host port. Quote Link to comment
Squid Posted August 13, 2021 Share Posted August 13, 2021 Port mappings are completely ignored when in Host or on br0 (because they have no effect) 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.