title: Expose all ports for a Docker image
body: <p>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.</p>
  <p>Currently, my <code>EXPOSE</code> statement says:</p>
  <pre><code>EXPOSE 8080 61616 5672 61613 5445 1883
  </code></pre>
  <p>I also start my docker containers with</p>
  <pre><code>docker run --network host -p 8080:8080 -p 61616:61616 -p 5672:5672 -p 61613:61613 -p 5445:5445 -p 1883:1883
  </code></pre>
  <p>But for the sake of troubleshooting, I want to expose ALL ports.</p>
  <p>I tried something like:</p>
  <pre><code>EXPOSE 1-65535
  </code></pre>
  <p>But this gives an ERROR.</p>
  <p>What is the best way I can expose ALL ports of the docker container?</p>