Most of the time, you want to change on which network the containerized app has to listen.
For example, we want to containerized app to listen on localhost:5000 of our machine (host).
We run the docker with --network="host" so the containerized app will listen to the host network instead of its own container network.
docker run --network="host" -d --name myapp myimage
Using host network will remove port binding of the container.