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.

  • Cannot access app in Docker container from outside
  • Access jboss 8080 port inside docker container
  • I can't see inside the container with a vnc
  • Docker swarm security and high availability on AWS
  • What are the differences between a VM image and a Docker image? [duplicate]
  • Docker - Cannot forward ports for an interactive shell
  • 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.

  • What does it mean sha256 in Docker, where are directories of layers of image?
  • Docker running multiple Apache instances
  • How to have 2 angular based apps which are dockerised running on same ubuntu machine
  • Xt error: Can't open display, if using default DISPLAY
  • docker selenium hub not accessible from different machine (in same network) [docker selenium grid not working]
  • Docker: Mixing distros - any disadvantage?
  • 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”

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