This is the command I run and it just hangs there - no registration with mesos master.
I had to create a /etc/hosts file inside my mesos agent container to get rid of the message: "Failed to obtain the IP address for 'minion'; the DNS service may not be able to resolve it: Name or service not known" root@minion:/# mesos-execute --master=10.20.3.100:5050 --command="sleep 100" --name=test_mesos --docker_image=repo.example.com:5000/krish/test I0228 04:56:23.078397 13778 sched.cpp:164] Version: 0.24.1 I0228 04:56:23.080368 13786 sched.cpp:262] New master detected at master@10.20.3.100:5050 I0228 04:56:23.080498 13786 sched.cpp:272] No credentials provided. Attempting to register without authentication -- κρισhναν On Sun, Feb 28, 2016 at 8:14 AM, Guangya Liu <gyliu...@gmail.com> wrote: > Hi Krish, > > Can you please show more how did you do the test? Are you failing when > start slave or failed to run mesos-execute? > > Just check code of 0.24.1, found that the mesos slave does support both > containerized > (docker) & non-containerized workloads running at the same time, please > refer to > https://github.com/apache/mesos/blob/0.24.1/src/slave/flags.cpp#L346 > > But the mesos-execute do not have the option of containerizer in 0.24.1, > please refer to > https://github.com/apache/mesos/blob/0.24.1/src/cli/execute.cpp#L205-L214 > , so if you are using 0.24.1 mesos-execute and want to create docker > container, there is no need to specify containerizer but only specify the > docker_image > is enough. > > Thanks, > > Guangya > > On Sun, Feb 28, 2016 at 2:29 AM, Krish <krishnan.k.i...@gmail.com> wrote: > >> Well, I tried both. But the help that is printed contains no >> containerizer or containerizers field. >> >> >> On Saturday 27 February 2016, <connor....@gmail.com> wrote: >> >>> The flag name is --containerizers (plural) >>> >>> HTH, >>> -- >>> Connor >>> >>> On Feb 27, 2016, at 08:54, Krish <krishnan.k.i...@gmail.com> wrote: >>> >>> Thanks Guangya for your help. >>> >>> Unfortunately, something seems to be wrong. I get the error that the >>> 'containerizer' is not supported: "Failed to load unknown flag >>> 'containerizer'" >>> I am using mesos-0.24.1. >>> >>> I am trying to run a hello-docker aurora (v0.11) job using docker >>> containerizer. >>> >>> >>> >>> -- >>> κρισhναν >>> >>> On Mon, Feb 22, 2016 at 12:08 PM, Guangya Liu <gyliu...@gmail.com> >>> wrote: >>> >>>> I think that the following cli is a good start point for you to take a >>>> look which supports all containizers in mesos. >>>> >>>> https://github.com/apache/mesos/blob/master/src/cli/execute.cpp >>>> >>>> ./src/mesos-execute --master=192.168.56.12:5050 --command="sleep >>>> 1000" --name=test_mesos --docker_image=busybox:latest -- >>>> containerizer=mesos >>>> >>>> ./src/mesos-execute --master=192.168.56.12:5050 --command="sleep >>>> 1000" --name=test_mesos --docker_image=busybox:latest — >>>> containerizer=docker >>>> >>>> Thanks, >>>> >>>> Guangya >>>> >>>> On Mon, Feb 22, 2016 at 2:22 PM, Krish <krishnan.k.i...@gmail.com> >>>> wrote: >>>> >>>>> I was wondering if we can have both containerized (docker) & >>>>> non-containerized workloads running at the same time on Mesos >>>>> agents/slaves. >>>>> >>>>> I see from the mesos-slave command help that there is a >>>>> 'containerizers' option in the CLI & it will enforce the usage of >>>>> containers to be used. It doesn't seem to support non-containerized >>>>> workloads. >>>>> >>>>> Is my analysis correct? >>>>> >>>>> Also, if the above is correct, how does one tell the frameworks >>>>> (Aurora/Marathon/Cassandra frameworks) to use containerized vs >>>>> non-containerized workload slaves to schedule jobs? >>>>> >>>>> -- >>>>> κρισhναν >>>>> >>>> >>>> >>>> >>>> -- >>>> Guangya Liu (刘光亚) >>>> Senior Software Engineer >>>> DCOS and OpenStack Development >>>> IBM Platform Computing >>>> Systems and Technology Group >>>> >>> >>> >> >> -- >> >> Thumb typed mail >> >> >