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.

  • resolve internal DNS in linked docker containers
  • Deploying a .NET Core Web API using Docker on Elastic Beanstalk
  • Keep Data on Embedded database during deploy
  • Is it possible to use docker with jrebel or dcevm
  • Docker CLI env var value override not respected by container on startup
  • Which java 8 docker image contains jmap?
  • 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"
          }
        ]
      }
    }
    

  • How to remove old Docker containers
  • Communicate nodeJs with symfony rabbitMq
  • Docker registry:2 won't start
  • ERROR 1582 (42000) Incorrect parameter count in the call to native function 'FROM_UNIXTIME'
  • Difference between Docker registry and repository
  • docker client daemon access remote swarm `1.12.1` manager
  • 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.