MESOS / MARATHON / DOCKER – Docker started is wrong & Port Forwarding

I’m a bit new to Mesos / Marathon and I try to integrate it with my Docker Images.

So far : Mesos 0.21 for slave & master / Marathon 0.7.5 and of course, Zookeeper.

  • Parsing Docker image tag into component parts [duplicate]
  • Accessing RDS from within a Docker container not getting through security group?
  • Celery and Flask in same docker-compose
  • Why can't Java find a class from a jar file?
  • What happens to other processes when a Docker container's PID1 exits?
  • Mongodb docker container with client access control
  • I succeed on adding with curl my docker images but, unfortunately, I have 2 main issues:

    1. Even if I have build my image locally (in that case a tomcat7 Docker image) and see the Marathon config that it is well taken into account, the docker image started is not the one expected, it is always a ubuntu:latest image.
    2. How to manage docker port forwarding ? Are we forced to use a solution such as HAProxy ? I see that My Mesos slave uses always the same range of Port (31000 – 32000) for started containers.

    Thank you everyone for support.

  • Docker Compose - Share named volume between multiple containers
  • Docker COPY doesn't work
  • Docker volume access from host
  • Aldryn cloud on windows 10, using hyper-v, and docker 1.12 rc2 beta16
  • Docker container restart without data loss
  • Gitlab CI: Docker connect to remote MySQL via SSH Portforwarding before running tests
  • One Solution collect form web for “MESOS / MARATHON / DOCKER – Docker started is wrong & Port Forwarding”

    Here is an anwser from ConnerDoyle found on mIRC #mesos :

    ConnorDoyle: Mesos comes with a Docker containerizer that always pulls from a docker registry.
    You can configure the registry that dockerd pulls from in the usual way (via a .dockercfg file)
    * Retrieving #mesos modes…

    Alex: So even if for isntance eerything is in local
    ConnorDoyle: Yeah. You can use any image up on Dockerhub (the default registry for dockerd) or you can set your own.

    AlexFR: I shall define a private registry ?
    AlexFR: or push it to Dockerhub

    ConnorDoyle: Yes, because it assumes you’re on a big cluster and you want to fetch the image from somewhere when the job starts 🙂
    ConnorDoyle: Yeah, pushing to dockerhub is easier probably.

    This answers the first Question.

    Concerning the second , seems that HAProxy is the “standard approach” https://mesosphere.github.io/marathon/docs/service-discovery-load-balancing.html

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.