title: Redirect same port of two Docker containers on different ports
body: <p>I need to run a Java app into several Docker containers in order to isolate their execution.</p>
  
  <p>This app listens on port 12345 and I run my docker container with "-p 12345:5000" to redirect the port 12345 (from Docker container) to the port 5000 of my host. It works fine.</p>
  
  <p>But when I run another Docker container with "-p 12345:50001", I have an error "Bind for 0.0.0.0:12345 failed: port is already allocated."</p>
  
  <p>I don't understand why .. Thank you :)</p>