I am using Nomad v-0.6.2 and want to set the Capability NET_ADMIN via nomad job.
I get the error "Cap_add is an invalid field".
Is there a way to do so.
I am currently adding the flag "docker.caps.whitelist = "ALL" " in Jobspec.
And adding the "cap_add" : ["NET_ADMIN"]" in Tasks section of .nomad file.
If there is any other way I can configure this, it would be helpful.
P.S. I am trying to run a Dnsmasq job, and need the "cap-add" & "net=host" flags to allow the docker container to listen to UDP port.