Docker参数为Mesos

我正尝试在Mesos群集中执行一个docker容器。 我想要执行的有效docker命令是:

docker run -it -v /home/me:/home/jovyan/work -p 8888:8888 jupyter/pyspark-notebook 

我明白这个命令的forms是:

 mesos-execute --containerizer=docker --master=127.0.0.1:9090 --name=test --docker_image=jupyter/pyspark-notebook --command="start-notebook.sh" --resources="cpus:8" 

如何将-p-v参数的等价物传递给memos-execute命令?

目前,我正在运行一个vanilla Mesos集群,没有任何像马拉松运行的附加服务。

从mesos执行

该值可以是JSON格式的TaskInfostring,也可以是包含JSON格式的TaskInfo的文件path。 path必须是file:///path/to/fileformsfile:///path/to/file/path/to/file

请参阅mesos.protoTaskInfo消息以mesos.proto预期的格式。 注意: agent_id不需要设置。

TaskInfo包含名为ContainerInfo容器configuration的归档,您可以在其中configurationport mappings

对于任何其他自定义选项,您可以使用Parameters

 // Allowing arbitrary parameters to be passed to docker CLI. // Note that anything passed to this field is not guaranteed // to be supported moving forward, as we might move away from // the docker CLI. repeated Parameter parameters = 5;