Linking containers with Mesos JSON file

I am trying to link my application container to my DB container when sending the JSON task description to the Marathon framework.

I’ve read up on this question from last year: Linked Docker Containers with Mesos/Marathon

  • Is it possible to ignore a subfolder (e.g. node_module) in the mounted Volume in a docker container?
  • docker-compose yml running a script after up
  • Docker Compose remove containers started using docker run
  • Docker container IO performance
  • When dockerizing a rails app with EC2 container service with ELB do I still need nginx?
  • How to mount a docker volume while using a windows host?
  • The question is: I know Fig will be able to help me with this but I just wanna know if there is a way to link them on the Marathon framework? HAProxy might work?

  • Docker Ruby Rack Redis Queues
  • Centos and Fedora Docker, I can not start mysql
  • Tilde Expansion Doesn't Work in Docker COPY Command
  • Docker in host mode cannot connect to database running on host
  • running solr instance inside docker
  • docker COPY .env file fail
  • One Solution collect form web for “Linking containers with Mesos JSON file”

    If you want to link two containers, they have to run on the same host. Marathon currently does not support that. To me it sounds like you don’t really need that. Instead you could just use service discovery mechanisms to make your db accessible to the other service. For this you can use haproxy, or try mesos-dns.

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