我试图在Mesos集群中执行一个码头容器。我想执行的有效停靠命令是:
docker run -it -v /home/me:/home/jovyan/work -p 8888:8888 jupyter/pyspark-notebook据我所知,该命令的形式如下:
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命令?
目前,我运行的是一个普通的Mesos集群,没有任何添加的服务,比如马拉松运行。
发布于 2017-11-16 10:52:15
来自mesos执行
值可以是
TaskInfo的JSON格式的字符串,也可以是包含JSON格式的TaskInfo的文件路径。路径必须为file:///path/to/file或/path/to/file形式。 有关预期格式,请参阅mesos.proto中的mesos.proto消息。注意:不需要设置agent_id。
TaskInfo包含被称为ContainerInfo的容器配置文件,您可以在其中配置port 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;https://stackoverflow.com/questions/47296948
复制相似问题