Re: mesos docker vs native container

2016-04-26 Thread Avinash Sridharan
Docker does use bridged networking by default, but it uses linux bridges to
perform the bridging, there is no docker-proxy process. The problem with
docker bridge network is that the address space of the container spawned on
the docker bridge are different than the host network, so you need to
perform DNAT to get to any docker container on that bridge. The performance
hit is because of the DNAT. If you want container to container
communication on a single docker bridge, or if you configure the address
space of the docker bridge to be that of the host network (which in most
cases is not possible) you can get close to line speed performance.

Docker host networking is effectively attaching containers to the linux
host network namespace. So the performance results will be the same as that
of running a process natively on the host.

On Tue, Apr 26, 2016 at 5:07 PM, Jeff Schroeder 
wrote:

> I think you might be a bit confused now this all works. Docker by default
> uses bridged networking, which by default spins up a little crappy
> docker-proxy process for every port. You can disable docker-proxy and
> instead use hairpin routing mode if you have a modern kernel. However, I'm
> almost certain that any task you run via docker on mesos default to host
> networking. Docker, LXC, mesos containers all use the Linux kernel network
> namespace + perhaps some iptables/libnl magic for the networking bits.
> Docker in host networking mode will do networking at mostly native speed. I
> suggest you run iperf on mesos in the various configurations. It should be
> pretty straightforward to test the overhead, but I suspect docker + host
> networking will more than work. Give it a go and let us know!
>
>
> On Tuesday, April 26, 2016, vincent gromakowski <
> vincent.gromakow...@gmail.com> wrote:
>
>> Question is more related  to mesos.  I am thinking of using docker
>> instead of native (LXC?) containers but I suspect network performance
>> decrease which is important on big data workloads.
>> Can you explain why its not secured In host mode ?
>> Le 26 avr. 2016 7:51 PM, "Avinash Sridharan"  a
>> écrit :
>>
>>> Hi Vincent,
>>>  What do you mean by native container through Docker? Can you clarify
>>> your question a bit. Also if it's a DC/OS specific question you might want
>>> to post at us...@dcos.io .
>>>
>>> Thanks,
>>> Avinash
>>>
>>> On Tue, Apr 26, 2016 at 10:41 AM, vincent gromakowski <
>>> vincent.gromakow...@gmail.com> wrote:
>>>
 Nobody experienced docker vs native container performance ?
 Le 25 avr. 2016 9:37 AM, "vincent gromakowski" <
 vincent.gromakow...@gmail.com> a écrit :

> I am very interesting in getting some feedback of people who has moved
> from native container through Docker specially from network performance
> perspective.
> DCOS has been open sourced and I like all automation it brings with
> frameworks but it seems everything is running in docker ?
> I am looking for the smack stack for which network perf is important.
> Tx
>

>>>
>>>
>>> --
>>> Avinash Sridharan, Mesosphere
>>> +1 (323) 702 5245
>>>
>>
>
> --
> Text by Jeff, typos by iPhone
>



-- 
Avinash Sridharan, Mesosphere
+1 (323) 702 5245


Re: mesos docker vs native container

2016-04-26 Thread Jeff Schroeder
I think you might be a bit confused now this all works. Docker by default
uses bridged networking, which by default spins up a little crappy
docker-proxy process for every port. You can disable docker-proxy and
instead use hairpin routing mode if you have a modern kernel. However, I'm
almost certain that any task you run via docker on mesos default to host
networking. Docker, LXC, mesos containers all use the Linux kernel network
namespace + perhaps some iptables/libnl magic for the networking bits.
Docker in host networking mode will do networking at mostly native speed. I
suggest you run iperf on mesos in the various configurations. It should be
pretty straightforward to test the overhead, but I suspect docker + host
networking will more than work. Give it a go and let us know!

On Tuesday, April 26, 2016, vincent gromakowski <
vincent.gromakow...@gmail.com> wrote:

> Question is more related  to mesos.  I am thinking of using docker instead
> of native (LXC?) containers but I suspect network performance decrease
> which is important on big data workloads.
> Can you explain why its not secured In host mode ?
> Le 26 avr. 2016 7:51 PM, "Avinash Sridharan"  > a écrit :
>
>> Hi Vincent,
>>  What do you mean by native container through Docker? Can you clarify
>> your question a bit. Also if it's a DC/OS specific question you might want
>> to post at us...@dcos.io 
>>  .
>>
>> Thanks,
>> Avinash
>>
>> On Tue, Apr 26, 2016 at 10:41 AM, vincent gromakowski <
>> vincent.gromakow...@gmail.com
>> > wrote:
>>
>>> Nobody experienced docker vs native container performance ?
>>> Le 25 avr. 2016 9:37 AM, "vincent gromakowski" <
>>> vincent.gromakow...@gmail.com
>>> > a
>>> écrit :
>>>
 I am very interesting in getting some feedback of people who has moved
 from native container through Docker specially from network performance
 perspective.
 DCOS has been open sourced and I like all automation it brings with
 frameworks but it seems everything is running in docker ?
 I am looking for the smack stack for which network perf is important.
 Tx

>>>
>>
>>
>> --
>> Avinash Sridharan, Mesosphere
>> +1 (323) 702 5245
>>
>

-- 
Text by Jeff, typos by iPhone


Re: Scheduler for distributed builds

2016-04-26 Thread David Greenberg
http://github.com/twosigma/cook could be a good fit for this. It supports
scheduling arbitrary jobs within seconds of submission, and it has advanced
QoS features.

On Tue, Apr 26, 2016 at 3:13 PM Paulo Gallo  wrote:

> Hi,
>
> I'm looking for a scheduler to do distributed builds, i.e. most of the
> tasks would be short lived, like a few hundred ms long.
>
> Is there's any Mesos based scheduler that would be a good fit for this?
>
> Any help is appreciated.
>
> Thanks,
> -Paulo
>
> PS: I know that Jenkins supports distributed builds and integrates with
> Mesos, but we're looking for alternatives.
>
>


Scheduler for distributed builds

2016-04-26 Thread Paulo Gallo
Hi,

I'm looking for a scheduler to do distributed builds, i.e. most of the
tasks would be short lived, like a few hundred ms long.

Is there's any Mesos based scheduler that would be a good fit for this?

Any help is appreciated.

Thanks,
-Paulo

PS: I know that Jenkins supports distributed builds and integrates with
Mesos, but we're looking for alternatives.


Re: mesos docker vs native container

2016-04-26 Thread vincent gromakowski
Question is more related  to mesos.  I am thinking of using docker instead
of native (LXC?) containers but I suspect network performance decrease
which is important on big data workloads.
Can you explain why its not secured In host mode ?
Le 26 avr. 2016 7:51 PM, "Avinash Sridharan"  a
écrit :

> Hi Vincent,
>  What do you mean by native container through Docker? Can you clarify your
> question a bit. Also if it's a DC/OS specific question you might want to
> post at us...@dcos.io .
>
> Thanks,
> Avinash
>
> On Tue, Apr 26, 2016 at 10:41 AM, vincent gromakowski <
> vincent.gromakow...@gmail.com> wrote:
>
>> Nobody experienced docker vs native container performance ?
>> Le 25 avr. 2016 9:37 AM, "vincent gromakowski" <
>> vincent.gromakow...@gmail.com> a écrit :
>>
>>> I am very interesting in getting some feedback of people who has moved
>>> from native container through Docker specially from network performance
>>> perspective.
>>> DCOS has been open sourced and I like all automation it brings with
>>> frameworks but it seems everything is running in docker ?
>>> I am looking for the smack stack for which network perf is important.
>>> Tx
>>>
>>
>
>
> --
> Avinash Sridharan, Mesosphere
> +1 (323) 702 5245
>


Re: FW: failure notice

2016-04-26 Thread Pradeep Chhetri
Not sure though but my guess is that Mesos slave is unable to pull the
docker image. Are you using private docker registry ?
On Apr 26, 2016 5:24 PM,  wrote:

> Hi,
>
> I tried running python application through Marathon GUI (
> https://docs.docker.com/engine/userguide/containers/usingdocker/).The
> application is delaying to deploy and  the task is failing .
>
> This what I am getting the error:-
>
> Task id hello-world.8b610fde-0b97-11e6-8964-fa163e724e71
> State TASK_FAILED
> Message Abnormal executor termination
> Host 30.30.x.x
> Timestamp 2016-04-26T10:13:38.815Z (an hour ago)
> Version 2016-04-25T09:17:22.178Z (a day ago)
> Mesos Details link<
> http://30.30.x.x:5050/#/slaves/aab7953d-b2d1-4072-ad0a-c9e780ac2eb7-=S0/frameworks/a039103f-aab7-4f15-8578-0d52ac8f60e0-/executors/
> >
>
> I'm able to run the docker containers (ex.Hello-world) through the cli of
> the machine but I'm unable to get the application running in marathon GUI.
>
> Thank you,
> Aishwarya Adyanthaya
>
>
> 
>
> This message is for the designated recipient only and may contain
> privileged, proprietary, or otherwise confidential information. If you have
> received it in error, please notify the sender immediately and delete the
> original. Any other use of the e-mail by you is prohibited. Where allowed
> by local law, electronic communications with Accenture and its affiliates,
> including e-mail and instant messaging (including content), may be scanned
> by our systems for the purposes of information security and assessment of
> internal compliance with Accenture policy.
>
> __
>
> www.accenture.com
>


Re: mesos docker vs native container

2016-04-26 Thread Avinash Sridharan
Hi Vincent,
 What do you mean by native container through Docker? Can you clarify your
question a bit. Also if it's a DC/OS specific question you might want to
post at us...@dcos.io .

Thanks,
Avinash

On Tue, Apr 26, 2016 at 10:41 AM, vincent gromakowski <
vincent.gromakow...@gmail.com> wrote:

> Nobody experienced docker vs native container performance ?
> Le 25 avr. 2016 9:37 AM, "vincent gromakowski" <
> vincent.gromakow...@gmail.com> a écrit :
>
>> I am very interesting in getting some feedback of people who has moved
>> from native container through Docker specially from network performance
>> perspective.
>> DCOS has been open sourced and I like all automation it brings with
>> frameworks but it seems everything is running in docker ?
>> I am looking for the smack stack for which network perf is important.
>> Tx
>>
>


-- 
Avinash Sridharan, Mesosphere
+1 (323) 702 5245


Re: mesos docker vs native container

2016-04-26 Thread Steven Schlansker

> On Apr 25, 2016, at 12:37 AM, vincent gromakowski 
>  wrote:
> 
> I am very interesting in getting some feedback of people who has moved from 
> native container through Docker specially from network performance 
> perspective.
> DCOS has been open sourced and I like all automation it brings with 
> frameworks but it seems everything is running in docker ?
> I am looking for the smack stack for which network perf is important.

If you use the Docker default bridge network stack, I have heard of performance 
impact
up to 30% (depending on workload / kernel version / etc)

We use "host" networking which moderately reduces security but
all but eliminates the performance impact on the network.

You should make sure to do tests that this is true in your environment
but I believe it is possible to get near native performance if you
are willing to test things thoroughly and report issues as they arise.



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: Launch docker container from Marathon UI

2016-04-26 Thread June Taylor
The answer to your question is not very simple. I am still figuring this
out myself, but you can look at certain projects such as mesos-dns which
publish SRV records for running docker containers, allowing you to
programmatically find services you have started up. For example, here I
have started up a container that publishes an HTTP interface. Mesos starts
it up on a random node, and assigns it a random high TCP port. All I know
is that it is called "tomsflask" and that it has a TCP port. With this
information, I ask the mesos-dns system where is it running, as you can see
in the NSLOOKUP command below, requesting the SRV record which mesos-dns
automatically created when the container started. In the next command, I
use CURL to show what content is being produced on the port (31427) and
hostname I had received from the SRV command.

june@cluster:~$ nslookup -type=SRV _tomsflask._tcp.marathon.mesos

_tomsflask._tcp.marathon.mesos service = 0 0 31427 tomsflask-5p8ho-s83.
marathon.slave.mesos.

june@cluster:~$ curl http://tomsflask-5p8ho-s83.marathon.slave.mesos:31427

Hello World from Flask (default)


Thanks,
June Taylor
System Administrator, Minnesota Population Center
University of Minnesota

On Tue, Apr 26, 2016 at 11:52 AM, Stefano Bianchi 
wrote:

> Yes i guess i understood, so when i star a socker container like wordpress
> this app could have the need to contact another container as mysql, here
> project calico should be an efficient way to make this.
> Ok i will try, just to understand, first i run the mysql, then mesos will
> allocate it on a certain slave, then i need to run wordpress. How can i
> specify where is the mysql container in marathon UI?
>
> 2016-04-26 17:48 GMT+02:00 June Taylor :
>
>> Stefano,
>>
>> You would want to search for an appropriate image on Docker Hub. Here is
>> one I have NO experience with: https://hub.docker.com/_/mysql/
>>
>> You would then need to learn about how the image is expecting to be
>> configured, so you can set it up appropriately.
>>
>> This is not really a fully thought out solution. I assume you're trying
>> to do this for more of a proof-of-concept, though. So it may be fine for
>> your needs.
>>
>>
>> Thanks,
>> June Taylor
>> System Administrator, Minnesota Population Center
>> University of Minnesota
>>
>> On Tue, Apr 26, 2016 at 10:43 AM, Stefano Bianchi 
>> wrote:
>>
>>> My problem is this, where can i find the mysql container? I have just
>>> said to marathon to rim a wordpress docker container, without specify mysql
>>> one.
>>> Il 26/apr/2016 17:39, "Aaron Carey"  ha scritto:
>>>
 If you run the wordpress container on a different host to the mysql
 container and use --link on the command line, does that work?

 --

 Aaron Carey
 Production Engineer - Cloud Pipeline
 Industrial Light & Magic
 London
 020 3751 9150

 --
 *From:* Stefano Bianchi [jazzist...@gmail.com]
 *Sent:* 26 April 2016 16:23
 *To:* user@mesos.apache.org
 *Subject:* RE: Launch docker container from Marathon UI

 Hi Aaron
 Actually both mesos-dns and calico are running even though these
 containers im running are not, yet, using the calico ipaddr specific in
 json description.
 So i guess it is a problem of bridging, i guess simply specify HOST
 option on container field in Marathon UI
 Il 26/apr/2016 16:59, "Aaron Carey"  ha scritto:

> --link in docker should really be avoided when using marathon/mesos as
> it implies the containers are on the same host, but this will not always 
> be
> the case when mesos schedules your containers (also I think it's being
> deprecated in docker anyway.. not sure though?).
>
> This problem looks like one of service discovery within the mesos
> cluster: how does one service contact the other when it doesn't know which
> host the other service may have landed on?
>
> There are several different solutions for service discovery, you can
> look into some like Project Calico to offer a network layer to docker or
> try dns based solutions like Mesos-dns or Consul (along with 
> mesos-consul).
> I think marathon also has some concept of service discovery built in too 
> if
> you use something like haproxy.
>
> I hope this helps!
>
> Aaron
>
> --
>
> Aaron Carey
> Production Engineer - Cloud Pipeline
> Industrial Light & Magic
> London
> 020 3751 9150
>
> --
> *From:* June Taylor [j...@umn.edu]
> *Sent:* 26 April 2016 15:22
> *To:* user@mesos.apache.org
> *Subject:* Re: Launch docker container from Marathon UI
>
> Stefano,
>
> The docker run flag --link is intended to connect the container to
> another running container. I do not know how this would 

Re: Setting ulimits on mesos-slave

2016-04-26 Thread June Taylor
That is a good point - is the executor spun off as a different PID, if so
it would perhaps inherit a different fsize value.


Thanks,
June Taylor
System Administrator, Minnesota Population Center
University of Minnesota

On Tue, Apr 26, 2016 at 11:43 AM, haosdent  wrote:

> I disable the limit globally and retry set
>
> ```
> limit fsize unlimited unlimited
> ```
>
> in /etc/init/mesos-slave.conf after reboot. It works as well according to
> check limits under /proc May you double check this in your side? I wonder
> if the fszie only effective on Mesos Agent and doesn't work in your Mesos
> executor.
>
> On Tue, Apr 26, 2016 at 8:55 PM, June Taylor  wrote:
>
>> Perhaps the "unlimited" keyword is what is not working? What should be
>> specified for Unlimited?
>>
>>
>> Thanks,
>> June Taylor
>> System Administrator, Minnesota Population Center
>> University of Minnesota
>>
>> On Mon, Apr 25, 2016 at 9:48 PM, haosdent  wrote:
>>
>>> According my test, it works in my side.
>>>
>>> * Before add it to /etc/init/mesos-slave.conf
>>>
>>> ```
>>> cat /proc/16550/limits
>>> Limit Soft Limit   Hard Limit   Units
>>> Max cpu time  unlimitedunlimited
>>>  seconds
>>> Max file size unlimitedunlimitedbytes
>>> Max data size unlimitedunlimitedbytes
>>> Max stack size10485760 unlimitedbytes
>>> Max core file size0unlimitedbytes
>>> Max resident set  unlimitedunlimitedbytes
>>> Max processes 6365563655
>>>  processes
>>> Max open files8192 8192 files
>>> Max locked memory 6553665536bytes
>>> Max address space unlimitedunlimitedbytes
>>> Max file locksunlimitedunlimitedlocks
>>> Max pending signals   6365563655
>>>  signals
>>> Max msgqueue size 819200   819200   bytes
>>> Max nice priority 00
>>> Max realtime priority 00
>>> Max realtime timeout  unlimitedunlimitedus
>>> ```
>>>
>>> * After add it to /etc/init/mesos-slave.conf
>>>
>>> ```
>>> description "mesos slave"
>>>
>>> # I didn't use ulimit because I have already set ulimit globally.
>>> limit fsize 20001 20001
>>> limit nofile 2 2
>>> ```
>>>
>>> ```
>>> cat /proc/16602/limits
>>> Limit Soft Limit   Hard Limit   Units
>>> Max cpu time  unlimitedunlimited
>>>  seconds
>>> Max file size 2000120001
>>>  bytes   # <- Have changed
>>> Max data size unlimitedunlimitedbytes
>>> Max stack size10485760 unlimitedbytes
>>> Max core file size0unlimitedbytes
>>> Max resident set  unlimitedunlimitedbytes
>>> Max processes 6365563655
>>>  processes
>>> Max open files8192 8192 files
>>> Max locked memory 6553665536bytes
>>> Max address space unlimitedunlimitedbytes
>>> Max file locksunlimitedunlimitedlocks
>>> Max pending signals   6365563655
>>>  signals
>>> Max msgqueue size 819200   819200   bytes
>>> Max nice priority 00
>>> Max realtime priority 00
>>> Max realtime timeout  unlimitedunlimitedus
>>> ```
>>>
>>> On Tue, Apr 26, 2016 at 3:51 AM, June Taylor  wrote:
>>>
 Hello. We are running it as root, and it is able to specify the ulimit
 for open files, as noted in our config file, but it is not setting the File
 Size limit, which is remaining at 8MB.


 Thanks,
 June Taylor
 System Administrator, Minnesota Population Center
 University of Minnesota

 On Mon, Apr 25, 2016 at 2:50 PM, Dick Davies 
 wrote:

> Hi June
>
> are you running Mesos as root, or a non-privileged user? Non-root
> won't be able to up their own ulimit too high
> (sorry, not an upstart expert as RHELs is laughably incomplete).
>
> On 25 April 2016 at 19:15, June Taylor  wrote:
> > What I'm saying is even putting them within the upstart script, per
> the
> > Mesos documentation, isn't working for the file block limit. We're
> still
> > getting 8MB useable, and as a result executors fail when attempting
> to write
> 

Re: Setting ulimits on mesos-slave

2016-04-26 Thread haosdent
I disable the limit globally and retry set

```
limit fsize unlimited unlimited
```

in /etc/init/mesos-slave.conf after reboot. It works as well according to
check limits under /proc May you double check this in your side? I wonder
if the fszie only effective on Mesos Agent and doesn't work in your Mesos
executor.

On Tue, Apr 26, 2016 at 8:55 PM, June Taylor  wrote:

> Perhaps the "unlimited" keyword is what is not working? What should be
> specified for Unlimited?
>
>
> Thanks,
> June Taylor
> System Administrator, Minnesota Population Center
> University of Minnesota
>
> On Mon, Apr 25, 2016 at 9:48 PM, haosdent  wrote:
>
>> According my test, it works in my side.
>>
>> * Before add it to /etc/init/mesos-slave.conf
>>
>> ```
>> cat /proc/16550/limits
>> Limit Soft Limit   Hard Limit   Units
>> Max cpu time  unlimitedunlimited
>>  seconds
>> Max file size unlimitedunlimitedbytes
>> Max data size unlimitedunlimitedbytes
>> Max stack size10485760 unlimitedbytes
>> Max core file size0unlimitedbytes
>> Max resident set  unlimitedunlimitedbytes
>> Max processes 6365563655
>>  processes
>> Max open files8192 8192 files
>> Max locked memory 6553665536bytes
>> Max address space unlimitedunlimitedbytes
>> Max file locksunlimitedunlimitedlocks
>> Max pending signals   6365563655
>>  signals
>> Max msgqueue size 819200   819200   bytes
>> Max nice priority 00
>> Max realtime priority 00
>> Max realtime timeout  unlimitedunlimitedus
>> ```
>>
>> * After add it to /etc/init/mesos-slave.conf
>>
>> ```
>> description "mesos slave"
>>
>> # I didn't use ulimit because I have already set ulimit globally.
>> limit fsize 20001 20001
>> limit nofile 2 2
>> ```
>>
>> ```
>> cat /proc/16602/limits
>> Limit Soft Limit   Hard Limit   Units
>> Max cpu time  unlimitedunlimited
>>  seconds
>> Max file size 2000120001bytes
>>   # <- Have changed
>> Max data size unlimitedunlimitedbytes
>> Max stack size10485760 unlimitedbytes
>> Max core file size0unlimitedbytes
>> Max resident set  unlimitedunlimitedbytes
>> Max processes 6365563655
>>  processes
>> Max open files8192 8192 files
>> Max locked memory 6553665536bytes
>> Max address space unlimitedunlimitedbytes
>> Max file locksunlimitedunlimitedlocks
>> Max pending signals   6365563655
>>  signals
>> Max msgqueue size 819200   819200   bytes
>> Max nice priority 00
>> Max realtime priority 00
>> Max realtime timeout  unlimitedunlimitedus
>> ```
>>
>> On Tue, Apr 26, 2016 at 3:51 AM, June Taylor  wrote:
>>
>>> Hello. We are running it as root, and it is able to specify the ulimit
>>> for open files, as noted in our config file, but it is not setting the File
>>> Size limit, which is remaining at 8MB.
>>>
>>>
>>> Thanks,
>>> June Taylor
>>> System Administrator, Minnesota Population Center
>>> University of Minnesota
>>>
>>> On Mon, Apr 25, 2016 at 2:50 PM, Dick Davies 
>>> wrote:
>>>
 Hi June

 are you running Mesos as root, or a non-privileged user? Non-root
 won't be able to up their own ulimit too high
 (sorry, not an upstart expert as RHELs is laughably incomplete).

 On 25 April 2016 at 19:15, June Taylor  wrote:
 > What I'm saying is even putting them within the upstart script, per
 the
 > Mesos documentation, isn't working for the file block limit. We're
 still
 > getting 8MB useable, and as a result executors fail when attempting
 to write
 > larger files.
 >
 >
 > Thanks,
 > June Taylor
 > System Administrator, Minnesota Population Center
 > University of Minnesota
 >
 > On Mon, Apr 25, 2016 at 11:53 AM, haosdent 
 wrote:
 >>
 >> If you set in your upstart script, it isn't system wide and only
 effective
 >> in that session. I think need change 

Re: FW: failure notice

2016-04-26 Thread Gilbert Song
Hi Aishwarya,

It would be helpful to find out the root cause if the agent log and sandbox
log can be attached:)

Gilbert

On Tue, Apr 26, 2016 at 5:17 AM, haosdent  wrote:

> Could you provide Mesos Agent log and stdout/stderr log?
>
> On Tue, Apr 26, 2016 at 7:53 PM, 
> wrote:
>
>> Hi,
>>
>> I tried running python application through Marathon GUI (
>> https://docs.docker.com/engine/userguide/containers/usingdocker/).The
>> application is delaying to deploy and  the task is failing .
>>
>> This what I am getting the error:-
>>
>> Task id hello-world.8b610fde-0b97-11e6-8964-fa163e724e71
>> State TASK_FAILED
>> Message Abnormal executor termination
>> Host 30.30.x.x
>> Timestamp 2016-04-26T10:13:38.815Z (an hour ago)
>> Version 2016-04-25T09:17:22.178Z (a day ago)
>> Mesos Details link<
>> http://30.30.x.x:5050/#/slaves/aab7953d-b2d1-4072-ad0a-c9e780ac2eb7-=S0/frameworks/a039103f-aab7-4f15-8578-0d52ac8f60e0-/executors/
>> >
>>
>> I'm able to run the docker containers (ex.Hello-world) through the cli of
>> the machine but I'm unable to get the application running in marathon GUI.
>>
>> Thank you,
>> Aishwarya Adyanthaya
>>
>>
>> 
>>
>> This message is for the designated recipient only and may contain
>> privileged, proprietary, or otherwise confidential information. If you have
>> received it in error, please notify the sender immediately and delete the
>> original. Any other use of the e-mail by you is prohibited. Where allowed
>> by local law, electronic communications with Accenture and its affiliates,
>> including e-mail and instant messaging (including content), may be scanned
>> by our systems for the purposes of information security and assessment of
>> internal compliance with Accenture policy.
>>
>> __
>>
>> www.accenture.com
>>
>
>
>
> --
> Best Regards,
> Haosdent Huang
>


RE: Launch docker container from Marathon UI

2016-04-26 Thread Aaron Carey
Then you need to tell marathon to run the mysql container first, and then 
submit the wordpress container.

Sorry I think I misunderstood!


--

Aaron Carey
Production Engineer - Cloud Pipeline
Industrial Light & Magic
London
020 3751 9150


From: Stefano Bianchi [jazzist...@gmail.com]
Sent: 26 April 2016 16:43
To: user@mesos.apache.org
Subject: RE: Launch docker container from Marathon UI


My problem is this, where can i find the mysql container? I have just said to 
marathon to rim a wordpress docker container, without specify mysql one.

Il 26/apr/2016 17:39, "Aaron Carey" > ha 
scritto:
If you run the wordpress container on a different host to the mysql container 
and use --link on the command line, does that work?


--

Aaron Carey
Production Engineer - Cloud Pipeline
Industrial Light & Magic
London
020 3751 9150


From: Stefano Bianchi [jazzist...@gmail.com]
Sent: 26 April 2016 16:23
To: user@mesos.apache.org
Subject: RE: Launch docker container from Marathon UI


Hi Aaron
Actually both mesos-dns and calico are running even though these containers im 
running are not, yet, using the calico ipaddr specific in json description.
So i guess it is a problem of bridging, i guess simply specify HOST option on 
container field in Marathon UI

Il 26/apr/2016 16:59, "Aaron Carey" > ha 
scritto:
--link in docker should really be avoided when using marathon/mesos as it 
implies the containers are on the same host, but this will not always be the 
case when mesos schedules your containers (also I think it's being deprecated 
in docker anyway.. not sure though?).

This problem looks like one of service discovery within the mesos cluster: how 
does one service contact the other when it doesn't know which host the other 
service may have landed on?

There are several different solutions for service discovery, you can look into 
some like Project Calico to offer a network layer to docker or try dns based 
solutions like Mesos-dns or Consul (along with mesos-consul). I think marathon 
also has some concept of service discovery built in too if you use something 
like haproxy.

I hope this helps!

Aaron


--

Aaron Carey
Production Engineer - Cloud Pipeline
Industrial Light & Magic
London
020 3751 9150


From: June Taylor [j...@umn.edu]
Sent: 26 April 2016 15:22
To: user@mesos.apache.org
Subject: Re: Launch docker container from Marathon UI

Stefano,

The docker run flag --link is intended to connect the container to another 
running container. I do not know how this would operate in marathon. Perhaps it 
would be an application group which starts up the mysql docker image first, 
then the Wordpress docker image after it.


Thanks,
June Taylor
System Administrator, Minnesota Population Center
University of Minnesota

On Tue, Apr 26, 2016 at 9:20 AM, Stefano Bianchi 
> wrote:
Thanks Rad Gruchalski, actually i'm trying to make a json file that "translate" 
this command in marathon:

docker run --name some-wordpress --link some-mysql:mysql -d wordpress

i guess the error is relate to the fact that i'm not specifying --link 
some-mysql:mysql
My problem is that i don't know how to do that, i tried to fill environment 
variable fields:

Key = link
Value = some-mysql:mysql

But in this way the app does not work as well. How can i configure these env 
variables?

2016-04-26 16:01 GMT+02:00 Rad Gruchalski 
>:
It says exactly what the problem is.

Start a marathon task with correct environment variables in env and you will be 
fine.


Best regards,

Radek Gruchalski

ra...@gruchalski.com
de.linkedin.com/in/radgruchalski/

Confidentiality:
This communication is intended for the above-named person and may be 
confidential and/or legally privileged.
If it has come to you in error you must take no action based on it, nor must 
you copy or show it to anyone; please delete/destroy and inform the sender 
immediately.

On Tuesday, 26 April 2016 at 15:56, Stefano Bianchi wrote:

jupyter is working fine.
i tried to run wordpress and i get this error in stderr of mesos:


error: missing WORDPRESS_DB_HOST and MYSQL_PORT_3306_TCP environment variables

  Did you forget to --link some_mysql_container:mysql or set an external db

  with -e WORDPRESS_DB_HOST=hostname:port?



Some one of you know this issue?












2016-04-26 15:51 GMT+02:00 Stefano Bianchi 
>:
However thank you so much to all!

2016-04-26 15:22 GMT+02:00 Stefano Bianchi 
>:
i found the answer by my 

Re: Launch docker container from Marathon UI

2016-04-26 Thread June Taylor
Stefano,

You would want to search for an appropriate image on Docker Hub. Here is
one I have NO experience with: https://hub.docker.com/_/mysql/

You would then need to learn about how the image is expecting to be
configured, so you can set it up appropriately.

This is not really a fully thought out solution. I assume you're trying to
do this for more of a proof-of-concept, though. So it may be fine for your
needs.


Thanks,
June Taylor
System Administrator, Minnesota Population Center
University of Minnesota

On Tue, Apr 26, 2016 at 10:43 AM, Stefano Bianchi 
wrote:

> My problem is this, where can i find the mysql container? I have just said
> to marathon to rim a wordpress docker container, without specify mysql one.
> Il 26/apr/2016 17:39, "Aaron Carey"  ha scritto:
>
>> If you run the wordpress container on a different host to the mysql
>> container and use --link on the command line, does that work?
>>
>> --
>>
>> Aaron Carey
>> Production Engineer - Cloud Pipeline
>> Industrial Light & Magic
>> London
>> 020 3751 9150
>>
>> --
>> *From:* Stefano Bianchi [jazzist...@gmail.com]
>> *Sent:* 26 April 2016 16:23
>> *To:* user@mesos.apache.org
>> *Subject:* RE: Launch docker container from Marathon UI
>>
>> Hi Aaron
>> Actually both mesos-dns and calico are running even though these
>> containers im running are not, yet, using the calico ipaddr specific in
>> json description.
>> So i guess it is a problem of bridging, i guess simply specify HOST
>> option on container field in Marathon UI
>> Il 26/apr/2016 16:59, "Aaron Carey"  ha scritto:
>>
>>> --link in docker should really be avoided when using marathon/mesos as
>>> it implies the containers are on the same host, but this will not always be
>>> the case when mesos schedules your containers (also I think it's being
>>> deprecated in docker anyway.. not sure though?).
>>>
>>> This problem looks like one of service discovery within the mesos
>>> cluster: how does one service contact the other when it doesn't know which
>>> host the other service may have landed on?
>>>
>>> There are several different solutions for service discovery, you can
>>> look into some like Project Calico to offer a network layer to docker or
>>> try dns based solutions like Mesos-dns or Consul (along with mesos-consul).
>>> I think marathon also has some concept of service discovery built in too if
>>> you use something like haproxy.
>>>
>>> I hope this helps!
>>>
>>> Aaron
>>>
>>> --
>>>
>>> Aaron Carey
>>> Production Engineer - Cloud Pipeline
>>> Industrial Light & Magic
>>> London
>>> 020 3751 9150
>>>
>>> --
>>> *From:* June Taylor [j...@umn.edu]
>>> *Sent:* 26 April 2016 15:22
>>> *To:* user@mesos.apache.org
>>> *Subject:* Re: Launch docker container from Marathon UI
>>>
>>> Stefano,
>>>
>>> The docker run flag --link is intended to connect the container to
>>> another running container. I do not know how this would operate in
>>> marathon. Perhaps it would be an application group which starts up the
>>> mysql docker image first, then the Wordpress docker image after it.
>>>
>>>
>>> Thanks,
>>> June Taylor
>>> System Administrator, Minnesota Population Center
>>> University of Minnesota
>>>
>>> On Tue, Apr 26, 2016 at 9:20 AM, Stefano Bianchi 
>>> wrote:
>>>
 Thanks *Rad* Gruchalski, actually i'm trying to make a json file that
 "translate" this command in marathon:

 docker run --name some-wordpress --link some-mysql:mysql -d wordpress

 i guess the error is relate to the fact that i'm not specifying --link
 some-mysql:mysql
 My problem is that i don't know how to do that, i tried to fill
 environment variable fields:

 Key = link
 Value = some-mysql:mysql

 But in this way the app does not work as well. How can i configure
 these env variables?

 2016-04-26 16:01 GMT+02:00 Rad Gruchalski :

> It says exactly what the problem is.
>
> Start a marathon task with correct environment variables in env and
> you will be fine.
>
> Best regards,
> Radek Gruchalski
> ra...@gruchalski.com 
> de.linkedin.com/in/radgruchalski/
>
>
> *Confidentiality: *This communication is intended for the above-named
> person and may be confidential and/or legally privileged.
> If it has come to you in error you must take no action based on it,
> nor must you copy or show it to anyone; please delete/destroy and inform
> the sender immediately.
>
> On Tuesday, 26 April 2016 at 15:56, Stefano Bianchi wrote:
>
> jupyter is working fine.
> i tried to run wordpress and i get this error in stderr of mesos:
>
> error: missing WORDPRESS_DB_HOST and MYSQL_PORT_3306_TCP environment
> variables
>
>   Did you forget to --link some_mysql_container:mysql or set an

RE: Launch docker container from Marathon UI

2016-04-26 Thread Stefano Bianchi
My problem is this, where can i find the mysql container? I have just said
to marathon to rim a wordpress docker container, without specify mysql one.
Il 26/apr/2016 17:39, "Aaron Carey"  ha scritto:

> If you run the wordpress container on a different host to the mysql
> container and use --link on the command line, does that work?
>
> --
>
> Aaron Carey
> Production Engineer - Cloud Pipeline
> Industrial Light & Magic
> London
> 020 3751 9150
>
> --
> *From:* Stefano Bianchi [jazzist...@gmail.com]
> *Sent:* 26 April 2016 16:23
> *To:* user@mesos.apache.org
> *Subject:* RE: Launch docker container from Marathon UI
>
> Hi Aaron
> Actually both mesos-dns and calico are running even though these
> containers im running are not, yet, using the calico ipaddr specific in
> json description.
> So i guess it is a problem of bridging, i guess simply specify HOST option
> on container field in Marathon UI
> Il 26/apr/2016 16:59, "Aaron Carey"  ha scritto:
>
>> --link in docker should really be avoided when using marathon/mesos as it
>> implies the containers are on the same host, but this will not always be
>> the case when mesos schedules your containers (also I think it's being
>> deprecated in docker anyway.. not sure though?).
>>
>> This problem looks like one of service discovery within the mesos
>> cluster: how does one service contact the other when it doesn't know which
>> host the other service may have landed on?
>>
>> There are several different solutions for service discovery, you can look
>> into some like Project Calico to offer a network layer to docker or try dns
>> based solutions like Mesos-dns or Consul (along with mesos-consul). I think
>> marathon also has some concept of service discovery built in too if you use
>> something like haproxy.
>>
>> I hope this helps!
>>
>> Aaron
>>
>> --
>>
>> Aaron Carey
>> Production Engineer - Cloud Pipeline
>> Industrial Light & Magic
>> London
>> 020 3751 9150
>>
>> --
>> *From:* June Taylor [j...@umn.edu]
>> *Sent:* 26 April 2016 15:22
>> *To:* user@mesos.apache.org
>> *Subject:* Re: Launch docker container from Marathon UI
>>
>> Stefano,
>>
>> The docker run flag --link is intended to connect the container to
>> another running container. I do not know how this would operate in
>> marathon. Perhaps it would be an application group which starts up the
>> mysql docker image first, then the Wordpress docker image after it.
>>
>>
>> Thanks,
>> June Taylor
>> System Administrator, Minnesota Population Center
>> University of Minnesota
>>
>> On Tue, Apr 26, 2016 at 9:20 AM, Stefano Bianchi 
>> wrote:
>>
>>> Thanks *Rad* Gruchalski, actually i'm trying to make a json file that
>>> "translate" this command in marathon:
>>>
>>> docker run --name some-wordpress --link some-mysql:mysql -d wordpress
>>>
>>> i guess the error is relate to the fact that i'm not specifying --link
>>> some-mysql:mysql
>>> My problem is that i don't know how to do that, i tried to fill
>>> environment variable fields:
>>>
>>> Key = link
>>> Value = some-mysql:mysql
>>>
>>> But in this way the app does not work as well. How can i configure these
>>> env variables?
>>>
>>> 2016-04-26 16:01 GMT+02:00 Rad Gruchalski :
>>>
 It says exactly what the problem is.

 Start a marathon task with correct environment variables in env and you
 will be fine.

 Best regards,
 Radek Gruchalski
 ra...@gruchalski.com 
 de.linkedin.com/in/radgruchalski/


 *Confidentiality: *This communication is intended for the above-named
 person and may be confidential and/or legally privileged.
 If it has come to you in error you must take no action based on it, nor
 must you copy or show it to anyone; please delete/destroy and inform the
 sender immediately.

 On Tuesday, 26 April 2016 at 15:56, Stefano Bianchi wrote:

 jupyter is working fine.
 i tried to run wordpress and i get this error in stderr of mesos:

 error: missing WORDPRESS_DB_HOST and MYSQL_PORT_3306_TCP environment
 variables

   Did you forget to --link some_mysql_container:mysql or set an
 external db

   with -e WORDPRESS_DB_HOST=hostname:port?



 Some one of you know this issue?












 2016-04-26 15:51 GMT+02:00 Stefano Bianchi :

 However thank you so much to all!

 2016-04-26 15:22 GMT+02:00 Stefano Bianchi :

 i found the answer by my self sorry if i disturbed you.

 2016-04-26 15:19 GMT+02:00 Stefano Bianchi :

 Now that it is running, how can i check the User Interface?


 2016-04-26 15:18 GMT+02:00 Stefano Bianchi :

 Yes, now it's running!!! June you are 

Re: Launch docker container from Marathon UI

2016-04-26 Thread Rad Gruchalski
Marathon does not know it has to run it. You need to tell Marathon to start 
mysql container and then tell your wordpress container where is your mysql.










Best regards,

Radek Gruchalski

ra...@gruchalski.com (mailto:ra...@gruchalski.com)
 
(mailto:ra...@gruchalski.com)
de.linkedin.com/in/radgruchalski/ (http://de.linkedin.com/in/radgruchalski/)

Confidentiality:
This communication is intended for the above-named person and may be 
confidential and/or legally privileged.
If it has come to you in error you must take no action based on it, nor must 
you copy or show it to anyone; please delete/destroy and inform the sender 
immediately.



On Tuesday, 26 April 2016 at 17:43, Stefano Bianchi wrote:

> My problem is this, where can i find the mysql container? I have just said to 
> marathon to rim a wordpress docker container, without specify mysql one.
> Il 26/apr/2016 17:39, "Aaron Carey"  
> ha scritto:
> > If you run the wordpress container on a different host to the mysql 
> > container and use --link on the command line, does that work?
> >  
> > --
> >  
> > Aaron Carey
> > Production Engineer - Cloud Pipeline Industrial Light & Magic London
> > 020 3751 9150  
> > From: Stefano Bianchi [jazzist...@gmail.com (mailto:jazzist...@gmail.com)]
> > Sent: 26 April 2016 16:23
> > To: user@mesos.apache.org (mailto:user@mesos.apache.org)
> > Subject: RE: Launch docker container from Marathon UI
> >  
> > Hi Aaron
> > Actually both mesos-dns and calico are running even though these containers 
> > im running are not, yet, using the calico ipaddr specific in json 
> > description.
> > So i guess it is a problem of bridging, i guess simply specify HOST option 
> > on container field in Marathon UI  
> > Il 26/apr/2016 16:59, "Aaron Carey"  > (mailto:aca...@ilm.com)> ha scritto:
> > > --link in docker should really be avoided when using marathon/mesos as it 
> > > implies the containers are on the same host, but this will not always be 
> > > the case when mesos schedules your containers (also I think it's being 
> > > deprecated in docker anyway.. not sure though?).
> > >  
> > > This problem looks like one of service discovery within the mesos 
> > > cluster: how does one service contact the other when it doesn't know 
> > > which host the other service may have landed on?
> > >  
> > > There are several different solutions for service discovery, you can look 
> > > into some like Project Calico to offer a network layer to docker or try 
> > > dns based solutions like Mesos-dns or Consul (along with mesos-consul). I 
> > > think marathon also has some concept of service discovery built in too if 
> > > you use something like haproxy.
> > >  
> > > I hope this helps!
> > >  
> > > Aaron
> > >  
> > > --
> > >  
> > > Aaron Carey
> > > Production Engineer - Cloud Pipeline Industrial Light & Magic London
> > > 020 3751 9150  
> > > From: June Taylor [j...@umn.edu (mailto:j...@umn.edu)]
> > > Sent: 26 April 2016 15:22
> > > To: user@mesos.apache.org (mailto:user@mesos.apache.org)
> > > Subject: Re: Launch docker container from Marathon UI
> > >  
> > > Stefano,  
> > >  
> > > The docker run flag --link is intended to connect the container to 
> > > another running container. I do not know how this would operate in 
> > > marathon. Perhaps it would be an application group which starts up the 
> > > mysql docker image first, then the Wordpress docker image after it.  
> > >  
> > >  
> > > Thanks,  
> > > June Taylor
> > >  
> > > System Administrator, Minnesota Population Center
> > > University of Minnesota
> > >  
> > >  
> > >  
> > >  
> > >  
> > >  
> > >  
> > >  
> > > On Tue, Apr 26, 2016 at 9:20 AM, Stefano Bianchi  > > (mailto:jazzist...@gmail.com)> wrote:
> > > > Thanks Rad Gruchalski, actually i'm trying to make a json file that 
> > > > "translate" this command in marathon:  
> > > >  
> > > > docker run --name some-wordpress --link some-mysql:mysql -d wordpress  
> > > >  
> > > > i guess the error is relate to the fact that i'm not specifying --link 
> > > > some-mysql:mysql  
> > > > My problem is that i don't know how to do that, i tried to fill 
> > > > environment variable fields:
> > > >  
> > > > Key = link  
> > > > Value = some-mysql:mysql  
> > > >  
> > > > But in this way the app does not work as well. How can i configure 
> > > > these env variables?
> > > >  
> > > > 2016-04-26 16:01 GMT+02:00 Rad Gruchalski  > > > (mailto:ra...@gruchalski.com)>:
> > > > > It says exactly what the problem is.  
> > > > >  
> > > > > Start a marathon task with correct environment variables in env and 
> > > > > you will be fine.  
> > > > >  
> > > > >  
> > > > >  
> > > > >  
> > > > >  
> > > > >  
> > > > >  
> > > > >  
> > > > >  
> > > > >  
> > > > >  
> > > > > Best regards,

> > > > > Radek Gruchalski
> > > > > 
ra...@gruchalski.com (mailto:ra...@gruchalski.com)
 
> > > > > 

RE: Launch docker container from Marathon UI

2016-04-26 Thread Aaron Carey
If you run the wordpress container on a different host to the mysql container 
and use --link on the command line, does that work?


--

Aaron Carey
Production Engineer - Cloud Pipeline
Industrial Light & Magic
London
020 3751 9150


From: Stefano Bianchi [jazzist...@gmail.com]
Sent: 26 April 2016 16:23
To: user@mesos.apache.org
Subject: RE: Launch docker container from Marathon UI


Hi Aaron
Actually both mesos-dns and calico are running even though these containers im 
running are not, yet, using the calico ipaddr specific in json description.
So i guess it is a problem of bridging, i guess simply specify HOST option on 
container field in Marathon UI

Il 26/apr/2016 16:59, "Aaron Carey" > ha 
scritto:
--link in docker should really be avoided when using marathon/mesos as it 
implies the containers are on the same host, but this will not always be the 
case when mesos schedules your containers (also I think it's being deprecated 
in docker anyway.. not sure though?).

This problem looks like one of service discovery within the mesos cluster: how 
does one service contact the other when it doesn't know which host the other 
service may have landed on?

There are several different solutions for service discovery, you can look into 
some like Project Calico to offer a network layer to docker or try dns based 
solutions like Mesos-dns or Consul (along with mesos-consul). I think marathon 
also has some concept of service discovery built in too if you use something 
like haproxy.

I hope this helps!

Aaron


--

Aaron Carey
Production Engineer - Cloud Pipeline
Industrial Light & Magic
London
020 3751 9150


From: June Taylor [j...@umn.edu]
Sent: 26 April 2016 15:22
To: user@mesos.apache.org
Subject: Re: Launch docker container from Marathon UI

Stefano,

The docker run flag --link is intended to connect the container to another 
running container. I do not know how this would operate in marathon. Perhaps it 
would be an application group which starts up the mysql docker image first, 
then the Wordpress docker image after it.


Thanks,
June Taylor
System Administrator, Minnesota Population Center
University of Minnesota

On Tue, Apr 26, 2016 at 9:20 AM, Stefano Bianchi 
> wrote:
Thanks Rad Gruchalski, actually i'm trying to make a json file that "translate" 
this command in marathon:

docker run --name some-wordpress --link some-mysql:mysql -d wordpress

i guess the error is relate to the fact that i'm not specifying --link 
some-mysql:mysql
My problem is that i don't know how to do that, i tried to fill environment 
variable fields:

Key = link
Value = some-mysql:mysql

But in this way the app does not work as well. How can i configure these env 
variables?

2016-04-26 16:01 GMT+02:00 Rad Gruchalski 
>:
It says exactly what the problem is.

Start a marathon task with correct environment variables in env and you will be 
fine.


Best regards,

Radek Gruchalski

ra...@gruchalski.com
de.linkedin.com/in/radgruchalski/

Confidentiality:
This communication is intended for the above-named person and may be 
confidential and/or legally privileged.
If it has come to you in error you must take no action based on it, nor must 
you copy or show it to anyone; please delete/destroy and inform the sender 
immediately.

On Tuesday, 26 April 2016 at 15:56, Stefano Bianchi wrote:

jupyter is working fine.
i tried to run wordpress and i get this error in stderr of mesos:


error: missing WORDPRESS_DB_HOST and MYSQL_PORT_3306_TCP environment variables

  Did you forget to --link some_mysql_container:mysql or set an external db

  with -e WORDPRESS_DB_HOST=hostname:port?



Some one of you know this issue?












2016-04-26 15:51 GMT+02:00 Stefano Bianchi 
>:
However thank you so much to all!

2016-04-26 15:22 GMT+02:00 Stefano Bianchi 
>:
i found the answer by my self sorry if i disturbed you.

2016-04-26 15:19 GMT+02:00 Stefano Bianchi 
>:
Now that it is running, how can i check the User Interface?


2016-04-26 15:18 GMT+02:00 Stefano Bianchi 
>:
Yes, now it's running!!! June you are awesome!!!

2016-04-26 15:16 GMT+02:00 Stefano Bianchi 
>:
i have done these 2 commands, now jupyter is in deploying in marathon, staging 
in mesos.
Is there some additional configuration needed?

2016-04-26 15:13 GMT+02:00 Stefano Bianchi 
>:
June i tried to run your json, but the task is waiting, 

RE: Launch docker container from Marathon UI

2016-04-26 Thread Stefano Bianchi
Hi Aaron
Actually both mesos-dns and calico are running even though these containers
im running are not, yet, using the calico ipaddr specific in json
description.
So i guess it is a problem of bridging, i guess simply specify HOST option
on container field in Marathon UI
Il 26/apr/2016 16:59, "Aaron Carey"  ha scritto:

> --link in docker should really be avoided when using marathon/mesos as it
> implies the containers are on the same host, but this will not always be
> the case when mesos schedules your containers (also I think it's being
> deprecated in docker anyway.. not sure though?).
>
> This problem looks like one of service discovery within the mesos cluster:
> how does one service contact the other when it doesn't know which host the
> other service may have landed on?
>
> There are several different solutions for service discovery, you can look
> into some like Project Calico to offer a network layer to docker or try dns
> based solutions like Mesos-dns or Consul (along with mesos-consul). I think
> marathon also has some concept of service discovery built in too if you use
> something like haproxy.
>
> I hope this helps!
>
> Aaron
>
> --
>
> Aaron Carey
> Production Engineer - Cloud Pipeline
> Industrial Light & Magic
> London
> 020 3751 9150
>
> --
> *From:* June Taylor [j...@umn.edu]
> *Sent:* 26 April 2016 15:22
> *To:* user@mesos.apache.org
> *Subject:* Re: Launch docker container from Marathon UI
>
> Stefano,
>
> The docker run flag --link is intended to connect the container to another
> running container. I do not know how this would operate in marathon.
> Perhaps it would be an application group which starts up the mysql docker
> image first, then the Wordpress docker image after it.
>
>
> Thanks,
> June Taylor
> System Administrator, Minnesota Population Center
> University of Minnesota
>
> On Tue, Apr 26, 2016 at 9:20 AM, Stefano Bianchi 
> wrote:
>
>> Thanks *Rad* Gruchalski, actually i'm trying to make a json file that
>> "translate" this command in marathon:
>>
>> docker run --name some-wordpress --link some-mysql:mysql -d wordpress
>>
>> i guess the error is relate to the fact that i'm not specifying --link
>> some-mysql:mysql
>> My problem is that i don't know how to do that, i tried to fill
>> environment variable fields:
>>
>> Key = link
>> Value = some-mysql:mysql
>>
>> But in this way the app does not work as well. How can i configure these
>> env variables?
>>
>> 2016-04-26 16:01 GMT+02:00 Rad Gruchalski :
>>
>>> It says exactly what the problem is.
>>>
>>> Start a marathon task with correct environment variables in env and you
>>> will be fine.
>>>
>>> Best regards,
>>> Radek Gruchalski
>>> ra...@gruchalski.com 
>>> de.linkedin.com/in/radgruchalski/
>>>
>>>
>>> *Confidentiality: *This communication is intended for the above-named
>>> person and may be confidential and/or legally privileged.
>>> If it has come to you in error you must take no action based on it, nor
>>> must you copy or show it to anyone; please delete/destroy and inform the
>>> sender immediately.
>>>
>>> On Tuesday, 26 April 2016 at 15:56, Stefano Bianchi wrote:
>>>
>>> jupyter is working fine.
>>> i tried to run wordpress and i get this error in stderr of mesos:
>>>
>>> error: missing WORDPRESS_DB_HOST and MYSQL_PORT_3306_TCP environment
>>> variables
>>>
>>>   Did you forget to --link some_mysql_container:mysql or set an external
>>> db
>>>
>>>   with -e WORDPRESS_DB_HOST=hostname:port?
>>>
>>>
>>>
>>> Some one of you know this issue?
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> 2016-04-26 15:51 GMT+02:00 Stefano Bianchi :
>>>
>>> However thank you so much to all!
>>>
>>> 2016-04-26 15:22 GMT+02:00 Stefano Bianchi :
>>>
>>> i found the answer by my self sorry if i disturbed you.
>>>
>>> 2016-04-26 15:19 GMT+02:00 Stefano Bianchi :
>>>
>>> Now that it is running, how can i check the User Interface?
>>>
>>>
>>> 2016-04-26 15:18 GMT+02:00 Stefano Bianchi :
>>>
>>> Yes, now it's running!!! June you are awesome!!!
>>>
>>> 2016-04-26 15:16 GMT+02:00 Stefano Bianchi :
>>>
>>> i have done these 2 commands, now jupyter is in deploying in marathon,
>>> staging in mesos.
>>> Is there some additional configuration needed?
>>>
>>> 2016-04-26 15:13 GMT+02:00 Stefano Bianchi :
>>>
>>> June i tried to run your json, but the task is waiting, and if starts it
>>> failed immediately.
>>>
>>> I guess because i did not type this commands:
>>>
>>>
>>>1.
>>>
>>>echo 'docker,mesos' > /etc/mesos-slave/containerizers
>>>
>>>2.
>>>
>>>$ echo '5mins' > /etc/mesos-slave/executor_registration_timeout
>>>
>>>
>>> Could it be the problem?
>>>
>>> 2016-04-26 15:02 GMT+02:00 Stefano Bianchi :
>>>
>>> Thank you June taylor, it is axactly what i was 

RE: Launch docker container from Marathon UI

2016-04-26 Thread Aaron Carey
--link in docker should really be avoided when using marathon/mesos as it 
implies the containers are on the same host, but this will not always be the 
case when mesos schedules your containers (also I think it's being deprecated 
in docker anyway.. not sure though?).

This problem looks like one of service discovery within the mesos cluster: how 
does one service contact the other when it doesn't know which host the other 
service may have landed on?

There are several different solutions for service discovery, you can look into 
some like Project Calico to offer a network layer to docker or try dns based 
solutions like Mesos-dns or Consul (along with mesos-consul). I think marathon 
also has some concept of service discovery built in too if you use something 
like haproxy.

I hope this helps!

Aaron


--

Aaron Carey
Production Engineer - Cloud Pipeline
Industrial Light & Magic
London
020 3751 9150


From: June Taylor [j...@umn.edu]
Sent: 26 April 2016 15:22
To: user@mesos.apache.org
Subject: Re: Launch docker container from Marathon UI

Stefano,

The docker run flag --link is intended to connect the container to another 
running container. I do not know how this would operate in marathon. Perhaps it 
would be an application group which starts up the mysql docker image first, 
then the Wordpress docker image after it.


Thanks,
June Taylor
System Administrator, Minnesota Population Center
University of Minnesota

On Tue, Apr 26, 2016 at 9:20 AM, Stefano Bianchi 
> wrote:
Thanks Rad Gruchalski, actually i'm trying to make a json file that "translate" 
this command in marathon:

docker run --name some-wordpress --link some-mysql:mysql -d wordpress

i guess the error is relate to the fact that i'm not specifying --link 
some-mysql:mysql
My problem is that i don't know how to do that, i tried to fill environment 
variable fields:

Key = link
Value = some-mysql:mysql

But in this way the app does not work as well. How can i configure these env 
variables?

2016-04-26 16:01 GMT+02:00 Rad Gruchalski 
>:
It says exactly what the problem is.

Start a marathon task with correct environment variables in env and you will be 
fine.


Best regards,

Radek Gruchalski

ra...@gruchalski.com
de.linkedin.com/in/radgruchalski/

Confidentiality:
This communication is intended for the above-named person and may be 
confidential and/or legally privileged.
If it has come to you in error you must take no action based on it, nor must 
you copy or show it to anyone; please delete/destroy and inform the sender 
immediately.

On Tuesday, 26 April 2016 at 15:56, Stefano Bianchi wrote:

jupyter is working fine.
i tried to run wordpress and i get this error in stderr of mesos:


error: missing WORDPRESS_DB_HOST and MYSQL_PORT_3306_TCP environment variables

  Did you forget to --link some_mysql_container:mysql or set an external db

  with -e WORDPRESS_DB_HOST=hostname:port?



Some one of you know this issue?












2016-04-26 15:51 GMT+02:00 Stefano Bianchi 
>:
However thank you so much to all!

2016-04-26 15:22 GMT+02:00 Stefano Bianchi 
>:
i found the answer by my self sorry if i disturbed you.

2016-04-26 15:19 GMT+02:00 Stefano Bianchi 
>:
Now that it is running, how can i check the User Interface?


2016-04-26 15:18 GMT+02:00 Stefano Bianchi 
>:
Yes, now it's running!!! June you are awesome!!!

2016-04-26 15:16 GMT+02:00 Stefano Bianchi 
>:
i have done these 2 commands, now jupyter is in deploying in marathon, staging 
in mesos.
Is there some additional configuration needed?

2016-04-26 15:13 GMT+02:00 Stefano Bianchi 
>:
June i tried to run your json, but the task is waiting, and if starts it failed 
immediately.

I guess because i did not type this commands:


  1.

echo 'docker,mesos' > /etc/mesos-slave/containerizers

  2.

$ echo '5mins' > /etc/mesos-slave/executor_registration_timeout

Could it be the problem?

2016-04-26 15:02 GMT+02:00 Stefano Bianchi 
>:
Thank you June taylor, it is axactly what i was intending.
if it is not disturbing you, i try jupyter notebook as well, just to make some 
tests on how to launch marathon.
stay tuned :)

2016-04-26 14:58 GMT+02:00 Stefano Bianchi 
>:
thanks haosdent.
actually i have run this kind of apps through rest api.
Now i want learn how to laung docker files. I found this exaple:


{
  "container": {
"type": "DOCKER",
"docker": {
  

Re: Launch docker container from Marathon UI

2016-04-26 Thread June Taylor
Stefano,

The docker run flag --link is intended to connect the container to another
running container. I do not know how this would operate in marathon.
Perhaps it would be an application group which starts up the mysql docker
image first, then the Wordpress docker image after it.


Thanks,
June Taylor
System Administrator, Minnesota Population Center
University of Minnesota

On Tue, Apr 26, 2016 at 9:20 AM, Stefano Bianchi 
wrote:

> Thanks *Rad* Gruchalski, actually i'm trying to make a json file that
> "translate" this command in marathon:
>
> docker run --name some-wordpress --link some-mysql:mysql -d wordpress
>
> i guess the error is relate to the fact that i'm not specifying --link
> some-mysql:mysql
> My problem is that i don't know how to do that, i tried to fill
> environment variable fields:
>
> Key = link
> Value = some-mysql:mysql
>
> But in this way the app does not work as well. How can i configure these
> env variables?
>
> 2016-04-26 16:01 GMT+02:00 Rad Gruchalski :
>
>> It says exactly what the problem is.
>>
>> Start a marathon task with correct environment variables in env and you
>> will be fine.
>>
>> Best regards,
>> Radek Gruchalski
>> ra...@gruchalski.com 
>> de.linkedin.com/in/radgruchalski/
>>
>>
>> *Confidentiality:*This communication is intended for the above-named
>> person and may be confidential and/or legally privileged.
>> If it has come to you in error you must take no action based on it, nor
>> must you copy or show it to anyone; please delete/destroy and inform the
>> sender immediately.
>>
>> On Tuesday, 26 April 2016 at 15:56, Stefano Bianchi wrote:
>>
>> jupyter is working fine.
>> i tried to run wordpress and i get this error in stderr of mesos:
>>
>> error: missing WORDPRESS_DB_HOST and MYSQL_PORT_3306_TCP environment
>> variables
>>
>>   Did you forget to --link some_mysql_container:mysql or set an external
>> db
>>
>>   with -e WORDPRESS_DB_HOST=hostname:port?
>>
>>
>>
>> Some one of you know this issue?
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> 2016-04-26 15:51 GMT+02:00 Stefano Bianchi :
>>
>> However thank you so much to all!
>>
>> 2016-04-26 15:22 GMT+02:00 Stefano Bianchi :
>>
>> i found the answer by my self sorry if i disturbed you.
>>
>> 2016-04-26 15:19 GMT+02:00 Stefano Bianchi :
>>
>> Now that it is running, how can i check the User Interface?
>>
>>
>> 2016-04-26 15:18 GMT+02:00 Stefano Bianchi :
>>
>> Yes, now it's running!!! June you are awesome!!!
>>
>> 2016-04-26 15:16 GMT+02:00 Stefano Bianchi :
>>
>> i have done these 2 commands, now jupyter is in deploying in marathon,
>> staging in mesos.
>> Is there some additional configuration needed?
>>
>> 2016-04-26 15:13 GMT+02:00 Stefano Bianchi :
>>
>> June i tried to run your json, but the task is waiting, and if starts it
>> failed immediately.
>>
>> I guess because i did not type this commands:
>>
>>
>>1.
>>
>>echo 'docker,mesos' > /etc/mesos-slave/containerizers
>>
>>2.
>>
>>$ echo '5mins' > /etc/mesos-slave/executor_registration_timeout
>>
>>
>> Could it be the problem?
>>
>> 2016-04-26 15:02 GMT+02:00 Stefano Bianchi :
>>
>> Thank you June taylor, it is axactly what i was intending.
>> if it is not disturbing you, i try jupyter notebook as well, just to make
>> some tests on how to launch marathon.
>> stay tuned :)
>>
>> 2016-04-26 14:58 GMT+02:00 Stefano Bianchi :
>>
>> thanks haosdent.
>> actually i have run this kind of apps through rest api.
>> Now i want learn how to laung docker files. I found this exaple:
>>
>> {
>>   "container": {
>> "type": "DOCKER",
>> "docker": {
>>   "network": "HOST",
>>   "image": "group/image"
>> },
>> "volumes": [
>>   {
>> "containerPath": "/etc/a",
>> "hostPath": "/var/data/a",
>> "mode": "RO"
>>   },
>>   {
>> "containerPath": "/etc/b",
>> "hostPath": "/var/data/b",
>> "mode": "RW"
>>   }
>> ]
>>   }}
>>
>>
>> I am able to link the correspondent field in the marathon UI with what is
>> written in this json.
>> What i need to understand is, what i should write in:
>>
>>  "image": "group/image"
>>
>> i mean, with what i have to replace group and image?
>> For instance, if i would run wordpress container on docker hub what i
>> should put replacing "group/image" ?
>>
>>
>>
>>
>>
>>
>>
>> 2016-04-26 14:30 GMT+02:00 haosdent :
>>
>> 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" 
>> 

Re: Launch docker container from Marathon UI

2016-04-26 Thread Stefano Bianchi
Thanks *Rad* Gruchalski, actually i'm trying to make a json file that
"translate" this command in marathon:

docker run --name some-wordpress --link some-mysql:mysql -d wordpress

i guess the error is relate to the fact that i'm not specifying --link
some-mysql:mysql
My problem is that i don't know how to do that, i tried to fill environment
variable fields:

Key = link
Value = some-mysql:mysql

But in this way the app does not work as well. How can i configure these
env variables?

2016-04-26 16:01 GMT+02:00 Rad Gruchalski :

> It says exactly what the problem is.
>
> Start a marathon task with correct environment variables in env and you
> will be fine.
>
> Best regards,
> Radek Gruchalski
> ra...@gruchalski.com 
> de.linkedin.com/in/radgruchalski/
>
>
> *Confidentiality:*This communication is intended for the above-named
> person and may be confidential and/or legally privileged.
> If it has come to you in error you must take no action based on it, nor
> must you copy or show it to anyone; please delete/destroy and inform the
> sender immediately.
>
> On Tuesday, 26 April 2016 at 15:56, Stefano Bianchi wrote:
>
> jupyter is working fine.
> i tried to run wordpress and i get this error in stderr of mesos:
>
> error: missing WORDPRESS_DB_HOST and MYSQL_PORT_3306_TCP environment
> variables
>
>   Did you forget to --link some_mysql_container:mysql or set an external db
>
>   with -e WORDPRESS_DB_HOST=hostname:port?
>
>
>
> Some one of you know this issue?
>
>
>
>
>
>
>
>
>
>
>
>
> 2016-04-26 15:51 GMT+02:00 Stefano Bianchi :
>
> However thank you so much to all!
>
> 2016-04-26 15:22 GMT+02:00 Stefano Bianchi :
>
> i found the answer by my self sorry if i disturbed you.
>
> 2016-04-26 15:19 GMT+02:00 Stefano Bianchi :
>
> Now that it is running, how can i check the User Interface?
>
>
> 2016-04-26 15:18 GMT+02:00 Stefano Bianchi :
>
> Yes, now it's running!!! June you are awesome!!!
>
> 2016-04-26 15:16 GMT+02:00 Stefano Bianchi :
>
> i have done these 2 commands, now jupyter is in deploying in marathon,
> staging in mesos.
> Is there some additional configuration needed?
>
> 2016-04-26 15:13 GMT+02:00 Stefano Bianchi :
>
> June i tried to run your json, but the task is waiting, and if starts it
> failed immediately.
>
> I guess because i did not type this commands:
>
>
>1.
>
>echo 'docker,mesos' > /etc/mesos-slave/containerizers
>
>2.
>
>$ echo '5mins' > /etc/mesos-slave/executor_registration_timeout
>
>
> Could it be the problem?
>
> 2016-04-26 15:02 GMT+02:00 Stefano Bianchi :
>
> Thank you June taylor, it is axactly what i was intending.
> if it is not disturbing you, i try jupyter notebook as well, just to make
> some tests on how to launch marathon.
> stay tuned :)
>
> 2016-04-26 14:58 GMT+02:00 Stefano Bianchi :
>
> thanks haosdent.
> actually i have run this kind of apps through rest api.
> Now i want learn how to laung docker files. I found this exaple:
>
> {
>   "container": {
> "type": "DOCKER",
> "docker": {
>   "network": "HOST",
>   "image": "group/image"
> },
> "volumes": [
>   {
> "containerPath": "/etc/a",
> "hostPath": "/var/data/a",
> "mode": "RO"
>   },
>   {
> "containerPath": "/etc/b",
> "hostPath": "/var/data/b",
> "mode": "RW"
>   }
> ]
>   }}
>
>
> I am able to link the correspondent field in the marathon UI with what is
> written in this json.
> What i need to understand is, what i should write in:
>
>  "image": "group/image"
>
> i mean, with what i have to replace group and image?
> For instance, if i would run wordpress container on docker hub what i
> should put replacing "group/image" ?
>
>
>
>
>
>
>
> 2016-04-26 14:30 GMT+02:00 haosdent :
>
> 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 
> 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 

Re: Launch docker container from Marathon UI

2016-04-26 Thread Rad Gruchalski
It says exactly what the problem is.  

Start a marathon task with correct environment variables in env and you will be 
fine.  











Best regards,

Radek Gruchalski

ra...@gruchalski.com (mailto:ra...@gruchalski.com)
 
(mailto:ra...@gruchalski.com)
de.linkedin.com/in/radgruchalski/ (http://de.linkedin.com/in/radgruchalski/)

Confidentiality:
This communication is intended for the above-named person and may be 
confidential and/or legally privileged.
If it has come to you in error you must take no action based on it, nor must 
you copy or show it to anyone; please delete/destroy and inform the sender 
immediately.



On Tuesday, 26 April 2016 at 15:56, Stefano Bianchi wrote:

> jupyter is working fine.
> i tried to run wordpress and i get this error in stderr of mesos:
>  
> error: missing WORDPRESS_DB_HOST and MYSQL_PORT_3306_TCP environment 
> variables  
>   Did you forget to --link some_mysql_container:mysql or set an external db
>   with -e WORDPRESS_DB_HOST=hostname:port?
>  
>  
> Some one of you know this issue?
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
> 2016-04-26 15:51 GMT+02:00 Stefano Bianchi  (mailto:jazzist...@gmail.com)>:
> > However thank you so much to all!
> >  
> > 2016-04-26 15:22 GMT+02:00 Stefano Bianchi  > (mailto:jazzist...@gmail.com)>:
> > > i found the answer by my self sorry if i disturbed you.
> > >  
> > > 2016-04-26 15:19 GMT+02:00 Stefano Bianchi  > > (mailto:jazzist...@gmail.com)>:
> > > > Now that it is running, how can i check the User Interface?
> > > >  
> > > >  
> > > > 2016-04-26 15:18 GMT+02:00 Stefano Bianchi  > > > (mailto:jazzist...@gmail.com)>:
> > > > > Yes, now it's running!!! June you are awesome!!!
> > > > >  
> > > > > 2016-04-26 15:16 GMT+02:00 Stefano Bianchi  > > > > (mailto:jazzist...@gmail.com)>:
> > > > > > i have done these 2 commands, now jupyter is in deploying in 
> > > > > > marathon, staging in mesos.
> > > > > > Is there some additional configuration needed?
> > > > > >  
> > > > > >  
> > > > > > 2016-04-26 15:13 GMT+02:00 Stefano Bianchi  > > > > > (mailto:jazzist...@gmail.com)>:
> > > > > > > June i tried to run your json, but the task is waiting, and if 
> > > > > > > starts it failed immediately.
> > > > > > >  
> > > > > > > I guess because i did not type this commands:
> > > > > > >  
> > > > > > > echo 'docker,mesos' > /etc/mesos-slave/containerizers
> > > > > > > $ echo '5mins' > /etc/mesos-slave/executor_registration_timeout
> > > > > > >  
> > > > > > >  
> > > > > > >  
> > > > > > >  
> > > > > > > Could it be the problem?
> > > > > > >  
> > > > > > >  
> > > > > > > 2016-04-26 15:02 GMT+02:00 Stefano Bianchi  > > > > > > (mailto:jazzist...@gmail.com)>:
> > > > > > > > Thank you June taylor, it is axactly what i was intending.
> > > > > > > > if it is not disturbing you, i try jupyter notebook as well, 
> > > > > > > > just to make some tests on how to launch marathon.
> > > > > > > > stay tuned :)
> > > > > > > >  
> > > > > > > >  
> > > > > > > > 2016-04-26 14:58 GMT+02:00 Stefano Bianchi 
> > > > > > > > :
> > > > > > > > > thanks haosdent.
> > > > > > > > > actually i have run this kind of apps through rest api.
> > > > > > > > > Now i want learn how to laung docker files. I found this 
> > > > > > > > > exaple:
> > > > > > > > >  
> > > > > > > > > { "container": { "type": "DOCKER", "docker": { "network": 
> > > > > > > > > "HOST", "image": "group/image" }, "volumes": [ { 
> > > > > > > > > "containerPath": "/etc/a", "hostPath": "/var/data/a", "mode": 
> > > > > > > > > "RO" }, { "containerPath": "/etc/b", "hostPath": 
> > > > > > > > > "/var/data/b", "mode": "RW" } ] } }
> > > > > > > > >  
> > > > > > > > > I am able to link the correspondent field in the marathon UI 
> > > > > > > > > with what is written in this json.
> > > > > > > > > What i need to understand is, what i should write in:
> > > > > > > > > "image": "group/image"
> > > > > > > > > i mean, with what i have to replace group and image?
> > > > > > > > > For instance, if i would run wordpress container on docker 
> > > > > > > > > hub what i should put replacing "group/image" ?
> > > > > > > > >  
> > > > > > > > >  
> > > > > > > > >  
> > > > > > > > >  
> > > > > > > > >  
> > > > > > > > >  
> > > > > > > > >  
> > > > > > > > > 2016-04-26 14:30 GMT+02:00 haosdent  > > > > > > > > (mailto:haosd...@gmail.com)>:
> > > > > > > > > > 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  
> > > > > > > > > >  
> > > > > > > > > > ```
> > > > > > > > > > {
> > > > > > > 

Re: Launch docker container from Marathon UI

2016-04-26 Thread June Taylor
The docker container you're using seems to be expecting environment
variables which you have not supplied.


Thanks,
June Taylor
System Administrator, Minnesota Population Center
University of Minnesota

On Tue, Apr 26, 2016 at 8:56 AM, Stefano Bianchi 
wrote:

> jupyter is working fine.
> i tried to run wordpress and i get this error in stderr of mesos:
>
> error: missing WORDPRESS_DB_HOST and MYSQL_PORT_3306_TCP environment
> variables
>
>   Did you forget to --link some_mysql_container:mysql or set an external db
>
>   with -e WORDPRESS_DB_HOST=hostname:port?
>
>
>
> Some one of you know this issue?
>
>
>
>
>
>
>
>
>
>
>
>
> 2016-04-26 15:51 GMT+02:00 Stefano Bianchi :
>
>> However thank you so much to all!
>>
>> 2016-04-26 15:22 GMT+02:00 Stefano Bianchi :
>>
>>> i found the answer by my self sorry if i disturbed you.
>>>
>>> 2016-04-26 15:19 GMT+02:00 Stefano Bianchi :
>>>
 Now that it is running, how can i check the User Interface?


 2016-04-26 15:18 GMT+02:00 Stefano Bianchi :

> Yes, now it's running!!! June you are awesome!!!
>
> 2016-04-26 15:16 GMT+02:00 Stefano Bianchi :
>
>> i have done these 2 commands, now jupyter is in deploying in
>> marathon, staging in mesos.
>> Is there some additional configuration needed?
>>
>> 2016-04-26 15:13 GMT+02:00 Stefano Bianchi :
>>
>>> June i tried to run your json, but the task is waiting, and if
>>> starts it failed immediately.
>>>
>>> I guess because i did not type this commands:
>>>
>>>
>>>1.
>>>
>>>echo 'docker,mesos' > /etc/mesos-slave/containerizers
>>>
>>>2.
>>>
>>>$ echo '5mins' > /etc/mesos-slave/executor_registration_timeout
>>>
>>>
>>> Could it be the problem?
>>>
>>> 2016-04-26 15:02 GMT+02:00 Stefano Bianchi :
>>>
 Thank you June taylor, it is axactly what i was intending.
 if it is not disturbing you, i try jupyter notebook as well, just
 to make some tests on how to launch marathon.
 stay tuned :)

 2016-04-26 14:58 GMT+02:00 Stefano Bianchi :

> thanks haosdent.
> actually i have run this kind of apps through rest api.
> Now i want learn how to laung docker files. I found this exaple:
>
> {
>   "container": {
> "type": "DOCKER",
> "docker": {
>   "network": "HOST",
>   "image": "group/image"
> },
> "volumes": [
>   {
> "containerPath": "/etc/a",
> "hostPath": "/var/data/a",
> "mode": "RO"
>   },
>   {
> "containerPath": "/etc/b",
> "hostPath": "/var/data/b",
> "mode": "RW"
>   }
> ]
>   }}
>
>
> I am able to link the correspondent field in the marathon UI with
> what is written in this json.
> What i need to understand is, what i should write in:
>
>  "image": "group/image"
>
> i mean, with what i have to replace group and image?
> For instance, if i would run wordpress container on docker hub
> what i should put replacing "group/image" ?
>
>
>
>
>
>
>
> 2016-04-26 14:30 GMT+02:00 haosdent :
>
>> 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 <
>> jazzist...@gmail.com> 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"
>>> 

Re: Launch docker container from Marathon UI

2016-04-26 Thread Stefano Bianchi
jupyter is working fine.
i tried to run wordpress and i get this error in stderr of mesos:

error: missing WORDPRESS_DB_HOST and MYSQL_PORT_3306_TCP environment
variables

  Did you forget to --link some_mysql_container:mysql or set an external db

  with -e WORDPRESS_DB_HOST=hostname:port?



Some one of you know this issue?












2016-04-26 15:51 GMT+02:00 Stefano Bianchi :

> However thank you so much to all!
>
> 2016-04-26 15:22 GMT+02:00 Stefano Bianchi :
>
>> i found the answer by my self sorry if i disturbed you.
>>
>> 2016-04-26 15:19 GMT+02:00 Stefano Bianchi :
>>
>>> Now that it is running, how can i check the User Interface?
>>>
>>>
>>> 2016-04-26 15:18 GMT+02:00 Stefano Bianchi :
>>>
 Yes, now it's running!!! June you are awesome!!!

 2016-04-26 15:16 GMT+02:00 Stefano Bianchi :

> i have done these 2 commands, now jupyter is in deploying in marathon,
> staging in mesos.
> Is there some additional configuration needed?
>
> 2016-04-26 15:13 GMT+02:00 Stefano Bianchi :
>
>> June i tried to run your json, but the task is waiting, and if starts
>> it failed immediately.
>>
>> I guess because i did not type this commands:
>>
>>
>>1.
>>
>>echo 'docker,mesos' > /etc/mesos-slave/containerizers
>>
>>2.
>>
>>$ echo '5mins' > /etc/mesos-slave/executor_registration_timeout
>>
>>
>> Could it be the problem?
>>
>> 2016-04-26 15:02 GMT+02:00 Stefano Bianchi :
>>
>>> Thank you June taylor, it is axactly what i was intending.
>>> if it is not disturbing you, i try jupyter notebook as well, just to
>>> make some tests on how to launch marathon.
>>> stay tuned :)
>>>
>>> 2016-04-26 14:58 GMT+02:00 Stefano Bianchi :
>>>
 thanks haosdent.
 actually i have run this kind of apps through rest api.
 Now i want learn how to laung docker files. I found this exaple:

 {
   "container": {
 "type": "DOCKER",
 "docker": {
   "network": "HOST",
   "image": "group/image"
 },
 "volumes": [
   {
 "containerPath": "/etc/a",
 "hostPath": "/var/data/a",
 "mode": "RO"
   },
   {
 "containerPath": "/etc/b",
 "hostPath": "/var/data/b",
 "mode": "RW"
   }
 ]
   }}


 I am able to link the correspondent field in the marathon UI with
 what is written in this json.
 What i need to understand is, what i should write in:

  "image": "group/image"

 i mean, with what i have to replace group and image?
 For instance, if i would run wordpress container on docker hub what
 i should put replacing "group/image" ?







 2016-04-26 14:30 GMT+02:00 haosdent :

> 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 <
> jazzist...@gmail.com> 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
>


>>>
>>
>

>>>
>>
>


Re: Launch docker container from Marathon UI

2016-04-26 Thread Stefano Bianchi
However thank you so much to all!

2016-04-26 15:22 GMT+02:00 Stefano Bianchi :

> i found the answer by my self sorry if i disturbed you.
>
> 2016-04-26 15:19 GMT+02:00 Stefano Bianchi :
>
>> Now that it is running, how can i check the User Interface?
>>
>>
>> 2016-04-26 15:18 GMT+02:00 Stefano Bianchi :
>>
>>> Yes, now it's running!!! June you are awesome!!!
>>>
>>> 2016-04-26 15:16 GMT+02:00 Stefano Bianchi :
>>>
 i have done these 2 commands, now jupyter is in deploying in marathon,
 staging in mesos.
 Is there some additional configuration needed?

 2016-04-26 15:13 GMT+02:00 Stefano Bianchi :

> June i tried to run your json, but the task is waiting, and if starts
> it failed immediately.
>
> I guess because i did not type this commands:
>
>
>1.
>
>echo 'docker,mesos' > /etc/mesos-slave/containerizers
>
>2.
>
>$ echo '5mins' > /etc/mesos-slave/executor_registration_timeout
>
>
> Could it be the problem?
>
> 2016-04-26 15:02 GMT+02:00 Stefano Bianchi :
>
>> Thank you June taylor, it is axactly what i was intending.
>> if it is not disturbing you, i try jupyter notebook as well, just to
>> make some tests on how to launch marathon.
>> stay tuned :)
>>
>> 2016-04-26 14:58 GMT+02:00 Stefano Bianchi :
>>
>>> thanks haosdent.
>>> actually i have run this kind of apps through rest api.
>>> Now i want learn how to laung docker files. I found this exaple:
>>>
>>> {
>>>   "container": {
>>> "type": "DOCKER",
>>> "docker": {
>>>   "network": "HOST",
>>>   "image": "group/image"
>>> },
>>> "volumes": [
>>>   {
>>> "containerPath": "/etc/a",
>>> "hostPath": "/var/data/a",
>>> "mode": "RO"
>>>   },
>>>   {
>>> "containerPath": "/etc/b",
>>> "hostPath": "/var/data/b",
>>> "mode": "RW"
>>>   }
>>> ]
>>>   }}
>>>
>>>
>>> I am able to link the correspondent field in the marathon UI with
>>> what is written in this json.
>>> What i need to understand is, what i should write in:
>>>
>>>  "image": "group/image"
>>>
>>> i mean, with what i have to replace group and image?
>>> For instance, if i would run wordpress container on docker hub what
>>> i should put replacing "group/image" ?
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> 2016-04-26 14:30 GMT+02:00 haosdent :
>>>
 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 <
 jazzist...@gmail.com> 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

>>>
>>>
>>
>

>>>
>>
>


Re: Launch docker container from Marathon UI

2016-04-26 Thread Stefano Bianchi
i found the answer by my self sorry if i disturbed you.

2016-04-26 15:19 GMT+02:00 Stefano Bianchi :

> Now that it is running, how can i check the User Interface?
>
>
> 2016-04-26 15:18 GMT+02:00 Stefano Bianchi :
>
>> Yes, now it's running!!! June you are awesome!!!
>>
>> 2016-04-26 15:16 GMT+02:00 Stefano Bianchi :
>>
>>> i have done these 2 commands, now jupyter is in deploying in marathon,
>>> staging in mesos.
>>> Is there some additional configuration needed?
>>>
>>> 2016-04-26 15:13 GMT+02:00 Stefano Bianchi :
>>>
 June i tried to run your json, but the task is waiting, and if starts
 it failed immediately.

 I guess because i did not type this commands:


1.

echo 'docker,mesos' > /etc/mesos-slave/containerizers

2.

$ echo '5mins' > /etc/mesos-slave/executor_registration_timeout


 Could it be the problem?

 2016-04-26 15:02 GMT+02:00 Stefano Bianchi :

> Thank you June taylor, it is axactly what i was intending.
> if it is not disturbing you, i try jupyter notebook as well, just to
> make some tests on how to launch marathon.
> stay tuned :)
>
> 2016-04-26 14:58 GMT+02:00 Stefano Bianchi :
>
>> thanks haosdent.
>> actually i have run this kind of apps through rest api.
>> Now i want learn how to laung docker files. I found this exaple:
>>
>> {
>>   "container": {
>> "type": "DOCKER",
>> "docker": {
>>   "network": "HOST",
>>   "image": "group/image"
>> },
>> "volumes": [
>>   {
>> "containerPath": "/etc/a",
>> "hostPath": "/var/data/a",
>> "mode": "RO"
>>   },
>>   {
>> "containerPath": "/etc/b",
>> "hostPath": "/var/data/b",
>> "mode": "RW"
>>   }
>> ]
>>   }}
>>
>>
>> I am able to link the correspondent field in the marathon UI with
>> what is written in this json.
>> What i need to understand is, what i should write in:
>>
>>  "image": "group/image"
>>
>> i mean, with what i have to replace group and image?
>> For instance, if i would run wordpress container on docker hub what i
>> should put replacing "group/image" ?
>>
>>
>>
>>
>>
>>
>>
>> 2016-04-26 14:30 GMT+02:00 haosdent :
>>
>>> 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 <
>>> jazzist...@gmail.com> 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
>>>
>>
>>
>

>>>
>>
>


Re: Launch docker container from Marathon UI

2016-04-26 Thread Stefano Bianchi
Yes, now it's running!!! June you are awesome!!!

2016-04-26 15:16 GMT+02:00 Stefano Bianchi :

> i have done these 2 commands, now jupyter is in deploying in marathon,
> staging in mesos.
> Is there some additional configuration needed?
>
> 2016-04-26 15:13 GMT+02:00 Stefano Bianchi :
>
>> June i tried to run your json, but the task is waiting, and if starts it
>> failed immediately.
>>
>> I guess because i did not type this commands:
>>
>>
>>1.
>>
>>echo 'docker,mesos' > /etc/mesos-slave/containerizers
>>
>>2.
>>
>>$ echo '5mins' > /etc/mesos-slave/executor_registration_timeout
>>
>>
>> Could it be the problem?
>>
>> 2016-04-26 15:02 GMT+02:00 Stefano Bianchi :
>>
>>> Thank you June taylor, it is axactly what i was intending.
>>> if it is not disturbing you, i try jupyter notebook as well, just to
>>> make some tests on how to launch marathon.
>>> stay tuned :)
>>>
>>> 2016-04-26 14:58 GMT+02:00 Stefano Bianchi :
>>>
 thanks haosdent.
 actually i have run this kind of apps through rest api.
 Now i want learn how to laung docker files. I found this exaple:

 {
   "container": {
 "type": "DOCKER",
 "docker": {
   "network": "HOST",
   "image": "group/image"
 },
 "volumes": [
   {
 "containerPath": "/etc/a",
 "hostPath": "/var/data/a",
 "mode": "RO"
   },
   {
 "containerPath": "/etc/b",
 "hostPath": "/var/data/b",
 "mode": "RW"
   }
 ]
   }}


 I am able to link the correspondent field in the marathon UI with what
 is written in this json.
 What i need to understand is, what i should write in:

  "image": "group/image"

 i mean, with what i have to replace group and image?
 For instance, if i would run wordpress container on docker hub what i
 should put replacing "group/image" ?







 2016-04-26 14:30 GMT+02:00 haosdent :

> 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  > 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
>


>>>
>>
>


Re: Launch docker container from Marathon UI

2016-04-26 Thread Stefano Bianchi
i have done these 2 commands, now jupyter is in deploying in marathon,
staging in mesos.
Is there some additional configuration needed?

2016-04-26 15:13 GMT+02:00 Stefano Bianchi :

> June i tried to run your json, but the task is waiting, and if starts it
> failed immediately.
>
> I guess because i did not type this commands:
>
>
>1.
>
>echo 'docker,mesos' > /etc/mesos-slave/containerizers
>
>2.
>
>$ echo '5mins' > /etc/mesos-slave/executor_registration_timeout
>
>
> Could it be the problem?
>
> 2016-04-26 15:02 GMT+02:00 Stefano Bianchi :
>
>> Thank you June taylor, it is axactly what i was intending.
>> if it is not disturbing you, i try jupyter notebook as well, just to make
>> some tests on how to launch marathon.
>> stay tuned :)
>>
>> 2016-04-26 14:58 GMT+02:00 Stefano Bianchi :
>>
>>> thanks haosdent.
>>> actually i have run this kind of apps through rest api.
>>> Now i want learn how to laung docker files. I found this exaple:
>>>
>>> {
>>>   "container": {
>>> "type": "DOCKER",
>>> "docker": {
>>>   "network": "HOST",
>>>   "image": "group/image"
>>> },
>>> "volumes": [
>>>   {
>>> "containerPath": "/etc/a",
>>> "hostPath": "/var/data/a",
>>> "mode": "RO"
>>>   },
>>>   {
>>> "containerPath": "/etc/b",
>>> "hostPath": "/var/data/b",
>>> "mode": "RW"
>>>   }
>>> ]
>>>   }}
>>>
>>>
>>> I am able to link the correspondent field in the marathon UI with what
>>> is written in this json.
>>> What i need to understand is, what i should write in:
>>>
>>>  "image": "group/image"
>>>
>>> i mean, with what i have to replace group and image?
>>> For instance, if i would run wordpress container on docker hub what i
>>> should put replacing "group/image" ?
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> 2016-04-26 14:30 GMT+02:00 haosdent :
>>>
 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 
 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

>>>
>>>
>>
>


Re: Launch docker container from Marathon UI

2016-04-26 Thread Stefano Bianchi
June i tried to run your json, but the task is waiting, and if starts it
failed immediately.

I guess because i did not type this commands:


   1.

   echo 'docker,mesos' > /etc/mesos-slave/containerizers

   2.

   $ echo '5mins' > /etc/mesos-slave/executor_registration_timeout


Could it be the problem?

2016-04-26 15:02 GMT+02:00 Stefano Bianchi :

> Thank you June taylor, it is axactly what i was intending.
> if it is not disturbing you, i try jupyter notebook as well, just to make
> some tests on how to launch marathon.
> stay tuned :)
>
> 2016-04-26 14:58 GMT+02:00 Stefano Bianchi :
>
>> thanks haosdent.
>> actually i have run this kind of apps through rest api.
>> Now i want learn how to laung docker files. I found this exaple:
>>
>> {
>>   "container": {
>> "type": "DOCKER",
>> "docker": {
>>   "network": "HOST",
>>   "image": "group/image"
>> },
>> "volumes": [
>>   {
>> "containerPath": "/etc/a",
>> "hostPath": "/var/data/a",
>> "mode": "RO"
>>   },
>>   {
>> "containerPath": "/etc/b",
>> "hostPath": "/var/data/b",
>> "mode": "RW"
>>   }
>> ]
>>   }}
>>
>>
>> I am able to link the correspondent field in the marathon UI with what is
>> written in this json.
>> What i need to understand is, what i should write in:
>>
>>  "image": "group/image"
>>
>> i mean, with what i have to replace group and image?
>> For instance, if i would run wordpress container on docker hub what i
>> should put replacing "group/image" ?
>>
>>
>>
>>
>>
>>
>>
>> 2016-04-26 14:30 GMT+02:00 haosdent :
>>
>>> 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 
>>> 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
>>>
>>
>>
>


Re: Launch docker container from Marathon UI

2016-04-26 Thread Stefano Bianchi
thanks haosdent.
actually i have run this kind of apps through rest api.
Now i want learn how to laung docker files. I found this exaple:

{
  "container": {
"type": "DOCKER",
"docker": {
  "network": "HOST",
  "image": "group/image"
},
"volumes": [
  {
"containerPath": "/etc/a",
"hostPath": "/var/data/a",
"mode": "RO"
  },
  {
"containerPath": "/etc/b",
"hostPath": "/var/data/b",
"mode": "RW"
  }
]
  }}


I am able to link the correspondent field in the marathon UI with what is
written in this json.
What i need to understand is, what i should write in:

 "image": "group/image"

i mean, with what i have to replace group and image?
For instance, if i would run wordpress container on docker hub what i
should put replacing "group/image" ?







2016-04-26 14:30 GMT+02:00 haosdent :

> 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 
> 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
>


Re: Setting ulimits on mesos-slave

2016-04-26 Thread June Taylor
Perhaps the "unlimited" keyword is what is not working? What should be
specified for Unlimited?


Thanks,
June Taylor
System Administrator, Minnesota Population Center
University of Minnesota

On Mon, Apr 25, 2016 at 9:48 PM, haosdent  wrote:

> According my test, it works in my side.
>
> * Before add it to /etc/init/mesos-slave.conf
>
> ```
> cat /proc/16550/limits
> Limit Soft Limit   Hard Limit   Units
> Max cpu time  unlimitedunlimitedseconds
> Max file size unlimitedunlimitedbytes
> Max data size unlimitedunlimitedbytes
> Max stack size10485760 unlimitedbytes
> Max core file size0unlimitedbytes
> Max resident set  unlimitedunlimitedbytes
> Max processes 6365563655
>  processes
> Max open files8192 8192 files
> Max locked memory 6553665536bytes
> Max address space unlimitedunlimitedbytes
> Max file locksunlimitedunlimitedlocks
> Max pending signals   6365563655signals
> Max msgqueue size 819200   819200   bytes
> Max nice priority 00
> Max realtime priority 00
> Max realtime timeout  unlimitedunlimitedus
> ```
>
> * After add it to /etc/init/mesos-slave.conf
>
> ```
> description "mesos slave"
>
> # I didn't use ulimit because I have already set ulimit globally.
> limit fsize 20001 20001
> limit nofile 2 2
> ```
>
> ```
> cat /proc/16602/limits
> Limit Soft Limit   Hard Limit   Units
> Max cpu time  unlimitedunlimitedseconds
> Max file size 2000120001bytes
>   # <- Have changed
> Max data size unlimitedunlimitedbytes
> Max stack size10485760 unlimitedbytes
> Max core file size0unlimitedbytes
> Max resident set  unlimitedunlimitedbytes
> Max processes 6365563655
>  processes
> Max open files8192 8192 files
> Max locked memory 6553665536bytes
> Max address space unlimitedunlimitedbytes
> Max file locksunlimitedunlimitedlocks
> Max pending signals   6365563655signals
> Max msgqueue size 819200   819200   bytes
> Max nice priority 00
> Max realtime priority 00
> Max realtime timeout  unlimitedunlimitedus
> ```
>
> On Tue, Apr 26, 2016 at 3:51 AM, June Taylor  wrote:
>
>> Hello. We are running it as root, and it is able to specify the ulimit
>> for open files, as noted in our config file, but it is not setting the File
>> Size limit, which is remaining at 8MB.
>>
>>
>> Thanks,
>> June Taylor
>> System Administrator, Minnesota Population Center
>> University of Minnesota
>>
>> On Mon, Apr 25, 2016 at 2:50 PM, Dick Davies 
>> wrote:
>>
>>> Hi June
>>>
>>> are you running Mesos as root, or a non-privileged user? Non-root
>>> won't be able to up their own ulimit too high
>>> (sorry, not an upstart expert as RHELs is laughably incomplete).
>>>
>>> On 25 April 2016 at 19:15, June Taylor  wrote:
>>> > What I'm saying is even putting them within the upstart script, per the
>>> > Mesos documentation, isn't working for the file block limit. We're
>>> still
>>> > getting 8MB useable, and as a result executors fail when attempting to
>>> write
>>> > larger files.
>>> >
>>> >
>>> > Thanks,
>>> > June Taylor
>>> > System Administrator, Minnesota Population Center
>>> > University of Minnesota
>>> >
>>> > On Mon, Apr 25, 2016 at 11:53 AM, haosdent  wrote:
>>> >>
>>> >> If you set in your upstart script, it isn't system wide and only
>>> effective
>>> >> in that session. I think need change /etc/security/limits.conf and
>>> >> /etc/sysctl.conf to make your ulimit work globally.
>>> >>
>>> >> On Tue, Apr 26, 2016 at 12:43 AM, June Taylor  wrote:
>>> >>>
>>> >>> Somewhere an 8MB maximum file size is being applied on just one of
>>> our
>>> >>> slaves, for example.
>>> >>>
>>> >>>
>>> >>> Thanks,
>>> >>> June Taylor
>>> >>> System Administrator, Minnesota Population Center
>>> >>> University of Minnesota
>>> >>>
>>> >>> On Mon, Apr 25, 2016 at 11:42 AM, June Taylor 

Re: Launch docker container from Marathon UI

2016-04-26 Thread June Taylor
Stefano,

I hope this information is helpful:

You should specify the docker hub path, which is the what you can see after
the Docker Pull command on the Hub page. In your case, simply the word:
"wordpress" without quotes, is what you would use as the Image.

You will also need to specify port bindings (which I am still learning
about so welcome corrections).

For example, here is how you would use the Jupyter Notebook from Docker
Hub. The container is publishing the Notebook interface on port , and
by specifying host port 0, a random port is chosen by Marathon, which you
will see in the Marathon interface under the Running Instances as a
clickable link to load the HTTP interface.

{
  "id": "notebook",
  "cpus": 1,
  "mem": 512,
  "container": {
"type": "DOCKER",
"docker": {
  "image": "jupyter/notebook",
  "network": "BRIDGE",
  "portMappings": [
{ "containerPort": , "hostPort": 0 }
  ]
}
  }
}



Thanks,
June Taylor
System Administrator, Minnesota Population Center
University of Minnesota

On Tue, Apr 26, 2016 at 7:24 AM, Stefano Bianchi 
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.
>


Re: Launch docker container from Marathon UI

2016-04-26 Thread Rad Gruchalski
Here’s the up to date URL:  
https://mesosphere.github.io/marathon/docs/generated/api.html#v2_apps_post










Best regards,

Radek Gruchalski

ra...@gruchalski.com (mailto:ra...@gruchalski.com)
 
(mailto:ra...@gruchalski.com)
de.linkedin.com/in/radgruchalski/ (http://de.linkedin.com/in/radgruchalski/)

Confidentiality:
This communication is intended for the above-named person and may be 
confidential and/or legally privileged.
If it has come to you in error you must take no action based on it, nor must 
you copy or show it to anyone; please delete/destroy and inform the sender 
immediately.



On Tuesday, 26 April 2016 at 14:30, haosdent wrote:

> 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  (mailto:jazzist...@gmail.com)> 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  



Re: Launch docker container from Marathon UI

2016-04-26 Thread haosdent
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 
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


Re: FW: failure notice

2016-04-26 Thread haosdent
Could you provide Mesos Agent log and stdout/stderr log?

On Tue, Apr 26, 2016 at 7:53 PM,  wrote:

> Hi,
>
> I tried running python application through Marathon GUI (
> https://docs.docker.com/engine/userguide/containers/usingdocker/).The
> application is delaying to deploy and  the task is failing .
>
> This what I am getting the error:-
>
> Task id hello-world.8b610fde-0b97-11e6-8964-fa163e724e71
> State TASK_FAILED
> Message Abnormal executor termination
> Host 30.30.x.x
> Timestamp 2016-04-26T10:13:38.815Z (an hour ago)
> Version 2016-04-25T09:17:22.178Z (a day ago)
> Mesos Details link<
> http://30.30.x.x:5050/#/slaves/aab7953d-b2d1-4072-ad0a-c9e780ac2eb7-=S0/frameworks/a039103f-aab7-4f15-8578-0d52ac8f60e0-/executors/
> >
>
> I'm able to run the docker containers (ex.Hello-world) through the cli of
> the machine but I'm unable to get the application running in marathon GUI.
>
> Thank you,
> Aishwarya Adyanthaya
>
>
> 
>
> This message is for the designated recipient only and may contain
> privileged, proprietary, or otherwise confidential information. If you have
> received it in error, please notify the sender immediately and delete the
> original. Any other use of the e-mail by you is prohibited. Where allowed
> by local law, electronic communications with Accenture and its affiliates,
> including e-mail and instant messaging (including content), may be scanned
> by our systems for the purposes of information security and assessment of
> internal compliance with Accenture policy.
>
> __
>
> www.accenture.com
>



-- 
Best Regards,
Haosdent Huang


FW: failure notice

2016-04-26 Thread aishwarya.adyanthaya
Hi,

I tried running python application through Marathon GUI 
(https://docs.docker.com/engine/userguide/containers/usingdocker/).The 
application is delaying to deploy and  the task is failing .

This what I am getting the error:-

Task id hello-world.8b610fde-0b97-11e6-8964-fa163e724e71
State TASK_FAILED
Message Abnormal executor termination
Host 30.30.x.x
Timestamp 2016-04-26T10:13:38.815Z (an hour ago)
Version 2016-04-25T09:17:22.178Z (a day ago)
Mesos Details 
link

I'm able to run the docker containers (ex.Hello-world) through the cli of the 
machine but I'm unable to get the application running in marathon GUI.

Thank you,
Aishwarya Adyanthaya




This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise confidential information. If you have received it in 
error, please notify the sender immediately and delete the original. Any other 
use of the e-mail by you is prohibited. Where allowed by local law, electronic 
communications with Accenture and its affiliates, including e-mail and instant 
messaging (including content), may be scanned by our systems for the purposes 
of information security and assessment of internal compliance with Accenture 
policy.
__

www.accenture.com


Re: Run Mesos without master being able to open connections to slaves

2016-04-26 Thread Elouan Keryell-Even
2016-04-25 19:27 GMT+02:00 Vinod Kone :

>
> On Mon, Apr 25, 2016 at 8:35 AM, Elouan Keryell-Even <
> elouan.kery...@gmail.com> wrote:
>
>> So I'd be glad to have some insight from you guys about if it is
>> possible, in one way or another, to make Mesos work without the Master
>> being able to initiate connections to slaves. I just need to be 100% sure
>> there isn't any workaround before going back to my boss :)
>>
>>
> Master and agent/slave are still required to be able to open connections
> to each other. There is no work around that I'm aware of.
>
> We had a similar restriction with scheduler (driver based) to master
> communication. The new scheduler HTTP API no longer has this restriction
> for master to scheduler communication.
>
> For master to agent communication, the plan is to come up with a new HTTP
> API similar to the scheduler HTTP API. Neither the design nor the
> implementation has started yet.
>

Hey Vinod,

Thank you very much for your answer, exactly what I needed to know.

Have a good day,
Elouan