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 do I create a database in the Postgres Docker container? [duplicate]
  • CentOS 7 : docker in docker: “Error: No space left on device”
  • X509CertificateValidationMode not working in Linux?
  • Communication between two Docker containers on macOS 10.12
  • How to let Docker containers broadcast their IP addresses or hostnames to each other?
  • How to delete a Docker image that has no tag?
  • 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 entrypoint from parent Image on Dockerfile
  • Quick way to add multiple RPM's to a dockerfile
  • How stop service jira in docker for updating jira?
  • Can not deploy custom MFP docker image on IBM Bluemix
  • fastcgi-mono-server4 and nginx with docker
  • piping data to exec_create & stdin/stdout
  • 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.