mesosphere / marathon

Deploy and manage containers (including Docker) on top of Apache Mesos at scale.
https://mesosphere.github.io/marathon/
Apache License 2.0
4.07k stars 845 forks source link

Docker example in Marathon Application Basics page fails to run #3399

Closed natemurthy closed 8 years ago

natemurthy commented 8 years ago

I have a 4 node (1 master + 3 workers) Mesos/Marathon cluster running in EC2 behind a VPC. I'm following the instructions on this page:

https://mesosphere.github.io/marathon/docs/application-basics.html

and could successfully deploy, launch, and run the first two examples on the page with no problem. But I'm having issues running the basic-3.json example using Docker containers. Below are some screenshots from my web dashboards:

marathon-docker-1

marathon-docker-2

marathon-docker-3

In my Marathon dashboard I am observing the basic-3 app looping into Waiting -> Deploying -> Delayed states and repeating this over and over again.

marathon-docker-4

And in Mesos I'm just seeing everything complete with FAILED state over and over for the same task. I manually installed Docker on all my worker nodes. Are there some additional configurations I need to make that were omitted in the instructions above?

junneyang commented 8 years ago

you should provide the task parameters for analysing. or check if your docker container could run locally without the deployment of marathon.

aldipower commented 8 years ago

Hey @natemurthy . Could you also post a screenshot with the Last Task Failure in the Debug Tab. That would be helpful to see what is going on. Thank you.

natemurthy commented 8 years ago

@junneyang yes, i can run docker container locally on my worker nodes:

$ sudo docker run hello-world

Hello from Docker.
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker Hub account:
 https://hub.docker.com

For more examples and ideas, visit:
 https://docs.docker.com/userguide/
natemurthy commented 8 years ago

@aldipower Screenshot of Last Task Failure from Debug Tab

docker-marathon-5

natemurthy commented 8 years ago

@kolloch can you re-open this issue, we haven't resolved it yet.

natemurthy commented 8 years ago

Since this issue was accidentally closed, I created a new ticket: https://github.com/mesosphere/marathon/issues/3407