Giter Club home page Giter Club logo

Comments (8)

yaronr avatar yaronr commented on August 19, 2024

Hi

Let's try to localise the problem first.

  1. Try to run something (a simple 'bash' hello world loop) from the Marathon UI. Does it work?
    1.1) If that works, try to run another docker container. something small and simple - ubuntu. does it work?
  2. Are there any errors?
  3. Look at the docker logs (docker log

from docker-mesos.

HelloGrayson avatar HelloGrayson commented on August 19, 2024

A simple helloworld works:

curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" \
  localdocker:18080/v2/apps -d '
{
    "id": "hello",
    "cpus": "0.1",
    "mem": "32",
    "cmd": "echo hello; sleep 10"
}'

This runs no problem, although I'm not able to view the sandbox link through the Mesos UI:

screen shot 2014-09-28 at 1 49 37 pm

from docker-mesos.

HelloGrayson avatar HelloGrayson commented on August 19, 2024

Hmmm... Inky fails even when avoiding the container contents by using echo hello; sleep 10 as the command:


curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" \
  localdocker:18080/v2/apps -d '
{
    "id": "inky",
    "container": {
        "docker": {
            "image": "mesosphere/inky"
        },
        "type": "DOCKER",
        "volumes": []
    },
    "cpus": 0.1,
    "mem": 16.0,
    "instances": 1,
    "cmd": "echo hello; sleep 10"
}'

screen shot 2014-09-28 at 1 52 27 pm

from docker-mesos.

HelloGrayson avatar HelloGrayson commented on August 19, 2024

Hmmm... ubuntu fails as well

curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" \
  localdocker:18080/v2/apps -d '
{
    "id": "ubuntutest",
    "container": {
        "docker": {
            "image": "ubuntu"
        },
        "type": "DOCKER",
        "volumes": []
    },
    "cpus": 0.1,
    "mem": 16.0,
    "instances": 1,
    "cmd": "echo hello; sleep 10"
}'

screen shot 2014-09-28 at 2 11 21 pm

from docker-mesos.

yaronr avatar yaronr commented on August 19, 2024

Hi @breerly !

I've seen the bug where I can't connect to the sandbox. I've spent a few hours trying to understand it and solve it, unsuccessfully obviously. It's really annoying.
My guess is that it has to do with port exposure and hostnames.

Regarding the others:
Guessing it's unable to retrieve the images, do you think so too?

Can you try to grab the logs from the actual hosts?
Please check that all your hosts have Internet access.
please try to docker pull the image on the slave (does it work?) and then run the same mesos command

from docker-mesos.

HelloGrayson avatar HelloGrayson commented on August 19, 2024

@yaronr Are you able to get anything working?

from docker-mesos.

yaronr avatar yaronr commented on August 19, 2024

I did, back at the days I played with it.
I will try again later - I'm in the middle of something right now. But the setup is pretty simple - so if you can fix it you self and send a pull request, that'll be great.

from docker-mesos.

larskluge avatar larskluge commented on August 19, 2024

Did somebody find a solution by any chance? I am running into the same problem currently.. Thanks a ton for any hints!

from docker-mesos.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.