Hi, some container images and docker applications require -p command to set the port of application/container and map it to the host (ros). i know that i can use DST NAT to expose(map) a container to outside, but how could i define the application port number running inside the container.
consider this for example:
docker run -d \
--name mtproxy \
--restart=always \
-e domain="cloudflare.com" \
-e secret="548593a9c0688f4f7d9d57377897d964" \
-e ip_white_list="OFF" \
-p 8080:80 \
-p 8443:443 \
ellermister/mtproxy
if we don't define the port, the application inside the container may not start listening on any port or it will use a random one(maybe).
thanks for the help
Navid