docker-baseimage-gui icon indicating copy to clipboard operation
docker-baseimage-gui copied to clipboard

new environment variable for port number

Open orsomething1030 opened this issue 5 years ago • 3 comments

The default port is set to 5800 for all your docker images and the default cannot be changed. For containers on my normal docker network this is fine since I can remap the ports in the compose file, but if I use a VPN docker network then all containers share the same network interface as the vpn client container.

For instance, the vpn client docker compose file would look something like this: vpn_client: image: dperson/openvpn-client ports: #ports for app containers' UI to be reachable from local network #firefox - "5801:5800" #jdownloader #- "5802:5800" .... etc

and then your docker containers would have in their compose section: network_mode: "service:vpn_client"

Since all your docker images share 5800 as the default port, I can't use more than one of them on my VPN docker network. Please add an environment variable to the base-image to change the default port number to allow cases like this.

orsomething1030 avatar May 16 '19 01:05 orsomething1030

Same problem here, while using with the realies/soulseek-docker container. Both use 5900 as the internal VNC port, with no option to change it. Would like to see a environment variable like INTERNAL_VNC_PORT.

reedhaffner avatar Mar 18 '21 05:03 reedhaffner

I have tried several things today but no luck. Mapping a modified default_site.conf with a different port does not work, the container quits with ERROR: No modification applied to /etc/nginx/default_site.conf. Very frustrating. Maybe @jlesage can give some advice on how to change the default port. Workarounds welcome.

Loader23 avatar May 14 '22 18:05 Loader23

The next version of the base image I'm working on will have this functionality.

Note that this is a problem only when creating a container without using the default bridge network. Else, you can re-map ports using the -p parameter of the docker run command.

jlesage avatar May 31 '22 17:05 jlesage

This is now supported with version 4.0.0 of images.

jlesage avatar Oct 07 '22 11:10 jlesage