Project: mesos
Issue MESOS-4820: Need to set `EXPOSED` ports from docker images into `ContainerConfig`
Most docker images have an `EXPOSE` command associated with them. This tells the container run-time the TCP ports that the micro-service "wishes" to expose to the outside world. With the `Unified containerizer` project since `MesosContainerizer` is going to natively support docker images it is imperative that the Mesos container run time have a mechanism to expose ports listed in a Docker image. The first step to achieve this is to extract this information from the `Docker` image and set in the `ContainerConfig` . The `ContainerConfig` can then be used to pass this information to any isolator (for e.g. `network/cni` isolator) that will install port forwarding rules to expose the desired ports.
Story points: 1