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.

  • Publish to random host port while using --network=host
  • Manually installing SonarQube plugins on Docker image
  • Flush Flower database occasionally and/or exit gracefully from Docker?
  • Docker-compose.yml Is not working for elasticserch
  • Auto reconnect to RabbitMQ cluster after server restart
  • fdisk doesn't find loop device in docker
  • How can I use VOLUME in a Dockerfile to persist individual files in a directory?
  • Deploying Flask app with Docker on Elastic Beanstalk: resource creation cancelled error
  • Sinatra app on AWS Beanstalk with docker and SQS
  • Proper way to automatically start and expose ssh when running my app container
  • Remotely create a vhost on a docker container running rabbitmq
  • Will single docker container scale automatically on Amazon's EC2?
  • 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.