I am troubleshooting a solution in which I am setting up a HA cluster. Although I know the ports needed for the application to perform failover and failback, somehow the dockerized solution is not working. I suspect that there are some ports that I do not know about yet.
Currently, my EXPOSE
statement says:
EXPOSE 8080 61616 5672 61613 5445 1883
I also start my docker containers with
docker run --network host -p 8080:8080 -p 61616:61616 -p 5672:5672 -p 61613:61613 -p 5445:5445 -p 1883:1883
But for the sake of troubleshooting, I want to expose ALL ports.
I tried something like:
EXPOSE 1-65535
But this gives an ERROR.
What is the best way I can expose ALL ports of the docker container?