title: How to assign as static port to a container?
body: <p>I want to assign a container a port, so that it gets the same port after every restart of the container.</p>
  
  <p>Example:
  I have a container, which has an Apache in it. The Apache runs on port 80 inside the container.
  Now, after starting the container, docker assigns a host port to the container port, for example: 49154 -> 80. But the host port changes after restart, depending on the number of running containers. I tried to specify the port in the config.json file of the container, but it gets overwritten.</p>
  
  <p>Is it possible to specify the host port manually?</p>
  
  <p>Thanks in advance and best regards,
  Chris</p>