1、marathon文档:
Static port mapping:
It's also possible to specify non-zero host ports. When doing this you must ensure that the target ports are included in some resource offers! The Mesos slave announces port resources in the range [31000-32000]
by default. This can be overridden; for example to also expose ports in the range [8000-9000]
:
--resources="ports(*):[8000-9000, 31000-32000]"
See the documentation for more details on how Docker handles networking.
2、mesos文档: