This is marathon REST API document:
https://mesosphere.github.io/marathon/docs/rest-api.html#post-v2-apps .
Usually we define a task json file and call the rest api.

For example, create tasks.json which content is

```
{
"id": "/test-sleep",
"cmd": "sleep 200"
}
```

And

```
curl -X POST -H "Content-type: application/json"
http://${YOUR_MARATHON_ADDR}:8080/v2/apps
-d @tasks.json
```

You could find more field definitions in their document.

On Tue, Apr 26, 2016 at 8:24 PM, Stefano Bianchi <[email protected]>
wrote:

> Hi guys
>
> i'm trying to follow the instructions on mesosphere documentation, but it
> is a little bit unlear for me that i am new to this world.
> i' would like to launch a wordpress container, present on docker hub here
> https://hub.docker.com/_/wordpress/ , from marathon UI but i don't
> understand the mechanism.
> I understood that i don't have to specify a command in "Command" field,
> but i don't know how to fill the dockers fields in marathon UI to launch
> wordpress container.
> Could you please help me or tell me where i can find a clearer
> documentation?
>
> Thanks.
>



-- 
Best Regards,
Haosdent Huang

Reply via email to