Closed lx30011 closed 3 years ago
What I am currently doing is just spinning up 2 separate gluetun containers where one is mapped to a different port. I would like to only use one container for both but this solution works for now.
There is no nice workaround really. The easiest would be to build your own image using FROM officialimagename
and modify the port yourself, or do a PR to the repo of that docker image to support a dynamic internal port. I'll try to do that PR in the coming days. Maybe you can help me find what's the corresponding Github repository? Thanks!
Thanks for the workaround, I didn't know about the FROM
instruction.
The two images mentioned are maintained at the two following repos:
Although it should be noted that this particular developer maintains a LOT of docker images and all of them suffer under this issue.
Thank you for doing this!
I had a quick look on my phone and it doesn't seem obvious where it's defined but I'll try again over the weekend 😉
The author told me he's reworking the base image common to all his images to have this port configurable. If you don't mind, as I'm also low on time/energy 😄, subscribe to https://github.com/jlesage/docker-jdownloader-2/issues/70 so that you can be alerted when this is possible and I'll close this issue. Thanks!
I've run into the same problem, with jlesage/jdownloader-2 and jlesage/mkvtoolnix, both are using port 5800 and I think the author hasn't made the port configurable yet.
There is no nice workaround really. The easiest would be to build your own image using
FROM officialimagename
and modify the port yourself
Could you elaborate on this or maybe point me to a documentation where it is explained how to do this? I'm new to docker and only used docker-compose files to spin up images from the docker hub. Thanks!
not a solution but a workaround, for JD2 use https://hub.docker.com/r/antlafarge/jdownloader
You can change the port for JD
Thanks @ChrizZz90 Unfortunately there is no workaround since they run on the same host, AFAIK.
Host OS (approximate answer is fine too): Ubuntu 20.04.1 LTS
Is this urgent?: No
What VPN provider are you using: Private Internet Access
What is the version of the program
What's the problem 🤔
I'm trying to route
jlesage/firefox
as well asjlesage/jdownloader-2
through the gluetun service, but both images use port 5800 by default and as far as I can tell, the images provide no option to change the port through e. g. environment variables. Normally, I would just remap the ports in the respective ports sections in the docker compose file, but I don't know how to this with gluetun.What are you using to run your container?: Docker Compose
Please also share your configuration file:
Thank you!