Customer params in kubectl when run docker

12/4/2015

I want the command like follows:

   docker run -d --net=host

How can I pass the --net=host params to the docker through kubectl.

-- yunfan
docker
kubernetes

1 Answer

12/4/2015

You can set the "hostNetwork" field to true in the pod spec to enable host networking. See the kube-apiserver manifest for an example.

-- Robert Bailey
Source: StackOverflow