These are chat archives for mesoscloud/mesos-slave

17th
Sep 2015
moybon
@moybon
Sep 17 2015 15:32
are the mesos slave or master creating new ubuntu os on the top of docker?
can someone help me, thanks!
Stephan
@ZeissS
Sep 17 2015 15:38
If you use mesos to run containers, it the docker image that you start.
Whatever is in that image is dependend upon you, because you choose it.
Could be ubuntu, could be fedora or others.
Its very much similar to doing a docker run for your image.
I hope that helps, @moybon
moybon
@moybon
Sep 17 2015 15:43
thanks for your explaination, what I am not able to understand is the 'docker run' apply for each mesos nodes(master+slave) or the mesos framework controls the docker container? I am confused a bit
Stephan
@ZeissS
Sep 17 2015 15:43
Your framework talks to the master and does the offer-startTask dance.
The master sends the startTask to the slave
the slave normally starts an executor, but if you define a container, it will talk to the docker daemon and do the equivalent of docker run
moybon
@moybon
Sep 17 2015 15:46
oky, can it be better if I have master mesos on vm, and the slaves are docker images?
Stephan
@ZeissS
Sep 17 2015 15:47
Afaik you can run all of them within docker.
moybon
@moybon
Sep 17 2015 15:50
oky, you mean mesos is running within docker.
Stephan
@ZeissS
Sep 17 2015 15:50
Wasn't that what you asked for?
moybon
@moybon
Sep 17 2015 15:51
yes, yes
Stephan
@ZeissS
Sep 17 2015 15:51
If you just want to play around, you can use the playa-mesos vagrant setup: https://github.com/mesosphere/playa-mesos
moybon
@moybon
Sep 17 2015 15:51
but the image mesos running is from docker
or it will create its own on top of docker
Stephan
@ZeissS
Sep 17 2015 15:52
mesos/docker is running whatever docker image you want. YOU have to specify that as part of your task.
I have the feeling you are missing a basic understand of docker itself. Have you played around with docker yet? Directly, w/o mesos?
moybon
@moybon
Sep 17 2015 15:53
i understand docker a bit
but not mesos actually
Stephan
@ZeissS
Sep 17 2015 15:54
mesos is just a scheduler for executing tasks.
tasks roughly consist of RAM, CPU amounts, and some process info how to execute the task.
that info can be
either a command to execute directly on the slave machine, a docker container info or some arbitary data info, that needs a custom executor to understand.
the docker container info is just the usual stuff you give to docker run.
no magic here.
moybon
@moybon
Sep 17 2015 15:58
why i ask this question is, I want to do 'docker pull mesoscloud/mesos-master' but I didn't undestand 'apt-get -y install mesos=0.22.1-1.0.ubuntu1404' line from Dockerfile
to be more specific
Stephan
@ZeissS
Sep 17 2015 15:59
That installs the mesos-master into the image.
moybon
@moybon
Sep 17 2015 15:59
not ubuntu image, right?
Stephan
@ZeissS
Sep 17 2015 16:00
Sorry, I am not following.
That line installs the mesos-master ubuntu version
or it was done, by whoever build that image and uploaded it to the docker hub.
moybon
@moybon
Sep 17 2015 16:04
thank you very much
oky
Stephan
@ZeissS
Sep 17 2015 16:05
@moybon I think you need a better understand of what docker images are. They are not 100% the same as e.g. virtualbox images or AMIs.
as they already include applications and sometimes configuration + data.
its like an android app or a Mac OS .app