Customer params in kubectl when run docker

I want the command like follows:

   docker run -d --net=host

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

  • How to Force Docker to release storage space after manual delete of file in volumes and containers?
  • docker upgrade - grub error
  • Running Angular2 application in Docker
  • Add additional ip's to lo interface in docker container
  • webpack-dev-server hot loading not working with boot2docker
  • Access container environment variables in inline run command
  • pushing docker image to dockerhub
  • Entity framework 7 with Microsoft SQL server not working in Docker
  • Rename Ethernet Adapter In Docker windowsservercore Image
  • Differences in the ways of creating a Docker swarm
  • Jupyter notebook on Docker not working behind proxy
  • One Solution collect form web for “Customer params in kubectl when run docker”

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

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.