Docker volume plugin marathon

Docker Volume plugins are released with Docker 1.8. I am trying to run a Docker container using Mesos/Marathon and I am able to run Docker container with volumes. What I am not able to do is connecting an external volume plugin.

As per marathon documentation any external parameter for Docker run can be passed as key value pair in the “parameter” tag of Marathon API POST.

  • How to automatically delete old Google App Engine version instances?
  • Docker container not exposed on network
  • How can I submit a Spark job to YARN cluster with Docker Container Executor as YARN container?
  • Unable to install pip in Docker
  • Weave plugin on AWS EC2
  • Docker swarm certificates
  • The Docker container does come up but is not connecting to my plugin for volume. The JSON file is as below. I am using curl connecting to Marathon. Any help is appreciated.

    curl -X POST http://A.B.C.D:8080/v2/apps -d @mygoserver.json -H "Content-type: application/json"
    
    
    {
      "id": "basic1",
      "cmd": "/mygoserver",
      "cpus": 1,
      "mem": 2.0,
      "container": {
        "type": "DOCKER",
        "docker": {
          "image": "mygoserver"
        },
        "parameters": [
                    { "key": "volume-driver", "value": "testplugin" }
        ],
       "volumes": [
          {
            "containerPath": "/data",
            "hostPath": "mygoserver",
            "mode": "RW"
          }
        ]
      }
    }
    

  • Dockerize your Angular NodeJS application
  • Can't connect to Redis/Memcache from inside Docker Container
  • docker ps -a not showing my container
  • Logging to STDOUT in a ruby program (not working in Docker)
  • Is it possible to launch privileged docker containers on Amazon elasticbeanstalk?
  • Docker-Compose Up Works but Eb Local Run does not
  • One Solution collect form web for “Docker volume plugin marathon”

    As per Marathon doc, the parameters have to be specified as a child of docker, so in your case it would be:

    "container": {
    "type": "DOCKER",
    "docker": {
      "image": "mygoserver"
      "parameters": [
        { "key": "volume-driver", "value": "testplugin" }
      ],
    },
    

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