Re: Docker Example Mesos 0.20?

2014-08-27 Thread Frank Hinek
Working here as well.  Thanks for the assist Tim! Put together a post on the steps for my own reference:  http://frankhinek.com/deploy-docker-containers-on-mesos-0-20/ On August 26, 2014 at 4:39:38 PM, Ray Rodriguez (rayrod2...@gmail.com) wrote: Thanks Tim works great.  Cheers! On Tue, Aug

Re: Docker Example Mesos 0.20?

2014-08-27 Thread Eran Chinthaka Withana
Thanks Frank for these instructions. I will have to wait for marathon release to use this (hopefully that will happen soon) A n00b question from me here. I noticed that we can now set --containerizers=docker,mesos. Does this mean mesos slaves will now support both docker type and old containers?

Re: Docker Example Mesos 0.20?

2014-08-27 Thread Connor Doyle
Hi Eran, that's correct. Mesos supports multiple containerizers now. The order they are listed is significant; as listed the Docker containerizer will pass on the TaskInfo if the ContainerInfo is not set or if the container type is not DOCKER. -- Connor On Aug 27, 2014, at 9:09, Eran

Re: Docker Example Mesos 0.20?

2014-08-27 Thread Eran Chinthaka Withana
Perfect, thanks Connor. Now really looking forward to get into 0.20 since I had minor issues with deimos + mesos 0.19. Hopefully Marathon will do a release soon. Thanks, Eran Chinthaka Withana On Wed, Aug 27, 2014 at 9:14 AM, Connor Doyle connor@gmail.com wrote: Hi Eran, that's correct.

Re: Docker Example Mesos 0.20?

2014-08-27 Thread Frank Hinek
Thanks for pointing out the significance of the order, Connor.  Very good to know. On August 27, 2014 at 12:15:07 PM, Connor Doyle (connor@gmail.com) wrote: Hi Eran, that's correct. Mesos supports multiple containerizers now.  The order they are listed is significant; as listed the Docker

Re: Docker Example Mesos 0.20?

2014-08-27 Thread Vinod Kone
On Wed, Aug 27, 2014 at 9:14 AM, Connor Doyle connor@gmail.com wrote: The order they are listed is significant Why is the order important? Is it a Marathon restriction? IIUC, Mesos will pick the right* containerizer based on whether TaskInfo.ContainerInfo or ExecutorInfo.ContainerInfo is

Re: Docker Example Mesos 0.20?

2014-08-27 Thread Tim Chen
Hi Vinod, Yes we realized that as well, the order affect the evaluation of the containerizers but I see Mesos Containterizer will not launch if ContainerInfo is set. Tim On Wed, Aug 27, 2014 at 10:15 AM, Vinod Kone vinodk...@gmail.com wrote: On Wed, Aug 27, 2014 at 9:14 AM, Connor Doyle

Re: Docker Example Mesos 0.20?

2014-08-27 Thread Tim Chen
Hi Frank, Yes, the order shouldn't matter. Sorry for the confusion. Tim On Wed, Aug 27, 2014 at 10:24 AM, Frank Hinek frank.hi...@gmail.com wrote: So if I’m reading this correctly the order shouldn’t matter if you are running from trunk or the future 0.20.1 release? On August 27, 2014 at

Docker Example Mesos 0.20?

2014-08-26 Thread Frank Hinek
Does anyone know of any example that shows how to launch a Docker container under Mesos 0.20.0? I was reading through the details here but unless I develop my own framework it isn’t clear how to start a new container on a Mesos Slave.

Re: Docker Example Mesos 0.20?

2014-08-26 Thread Jeremy Jongsma
Mesosphere has updated docs to reflect 0.20, note the container configuration field: http://mesosphere.io/learn/run-docker-on-mesosphere-cluster/ On Tue, Aug 26, 2014 at 12:30 PM, Frank Hinek frank.hi...@gmail.com wrote: Does anyone know of any example that shows how to launch a Docker

Re: Docker Example Mesos 0.20?

2014-08-26 Thread Michael Basnight
Also, I was able to prov docker containers in mesos 0.20 using marathon HEAD. I didn't have to change the Json in their examples at all. You might try that too. I'll let them comment on when they are going to push the next version. On Aug 26, 2014, at 10:34 AM, Jeremy Jongsma

Re: Docker Example Mesos 0.20?

2014-08-26 Thread Tim Chen
Hi Frank, Yes you need Marathon 0.7 which we are working on to release soon. In the mean time if you want you can grab latest master to experiment with. Thanks! Tim On Tue, Aug 26, 2014 at 10:41 AM, Frank Hinek frank.hi...@gmail.com wrote: I did run through that example but it fails every

Re: Docker Example Mesos 0.20?

2014-08-26 Thread Victor VIEUX
Volt Framework's code is pretty easy to read, see https://github.com/VoltFramework/volt/blob/master/mesoslib/tasks.go#L35 On Aug 26, 2014 10:41 AM, Frank Hinek frank.hi...@gmail.com wrote: I did run through that example but it fails every time. Perhaps it is because Marathon 0.6.1 doesn’t yet

Re: Docker Example Mesos 0.20?

2014-08-26 Thread Ray Rodriguez
I'm running marathon HEAD 0.7.0 against mesos 0.20.0. My mesos slaves are running with the command line flag --containerizers=docker,mesos and --isolation=cgroups/cpu,cgroups/mem When trying to run the example listed here: http://mesosphere.io/learn/run-docker-on-mesosphere-cluster/ I get the

Re: Docker Example Mesos 0.20?

2014-08-26 Thread Tim Chen
Hi Ray, Sorry the tutorial is not yet up to date too, once we have Marathon 0.7 released the tutorial will be updated as well. Here is one example for running the image: { id: inky, container: { docker: { image: mesosphere/inky }, type: DOCKER,

Re: Docker Example Mesos 0.20?

2014-08-26 Thread Ray Rodriguez
Thanks Tim works great. Cheers! On Tue, Aug 26, 2014 at 4:31 PM, Tim Chen t...@mesosphere.io wrote: Hi Ray, Sorry the tutorial is not yet up to date too, once we have Marathon 0.7 released the tutorial will be updated as well. Here is one example for running the image: { id: