I start a Docker container on my machine. It will have to talk to two services on remote nodes and for this it occupies ports 80 and 443.
I log into the container and start one task from the command line. The task does some initial data exchange with the remote nodes. Having done that, it starts a very long computation without any need to contact the remote nodes anymore.
I'd like to run that task more times in parallel, but I cannot start multiple instances of the container, because they would clash about the ports.
Is there some kind of software router that I can use to sort out this problem?
I know from here that I can run multiple shells on my container, but I am still curious about the possibility of using a software router to serve multiple containers.
NB: I am not using any docker-compose or kubernetes setting. Just plain, simple containers.