You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by Marc Roos <M....@f1-outsourcing.eu> on 2019/10/10 21:12:45 UTC

NET_ADMIN permission equivalent for mesos

I have a docker image that requires NET_ADMIN, I have found this[0] (for 
the docker containerizer?), but what is the syntax for the mesos 
containerizer.



[0]
{
  "cpus": 0.1,
  "mem": 50,
  "id": "/openvpn",
  "instances": 1,
  "container": {
    "docker": {
      "image": "docker-registry.marathon.mesos:5000/openvpn",
      "network": "BRIDGE",
      "forcePullImage": true,
      "parameters": [{"key":"cap-add", "value":"NET_ADMIN"}],
      "portMappings": [{"containerPort": 1194, "servicePort": 1194}]
    }
  },
  "dependencies": ["/mesos-dns", "/docker-registry"],
  "healthChecks": [{"protocol": "TCP"}]
}