【Docker】mesos如何修改hostport默认端口范围?

1、marathon文档:https://mesosphere.github.io/marathon/docs/native-docker.html

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 network configuration documentation for more details on how Docker handles networking.

2、mesos文档:https://mesos.apache.org/documentation/latest/configuration/

原文地址:https://www.cnblogs.com/junneyang/p/5369065.html