YARN-4007 addresses different network setups when launching the docker container. We need support port mapping when docker container uses bridge network.
The following problems are what we faced:
1. Add "-P" to map docker container's exposed ports to automatically.
2. Add "-p" to let user specify specific ports to map.
3. Add service registry support for bridge network case, then app could find each other. It could be done out of YARN, however it might be more convenient to support it natively in YARN.