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.

  • Docker volume stops syncing
  • Environment based connection string with ASP NET CORE and Docker support
  • How to rename a docker image in the remote registry
  • Docker-compose config front-end with back-end's IP from host's perspective
  • Execute mongodb binaries on alpine linux
  • php app files permission after docker build
  • How to setting Core file size in Docker container?
  • Application connect to container directly
  • Docker inspect format retrieve port mapping
  • Why does Liquibase migration on MySQL database die after acquiring lock on DC/OS (worked fine with docker-compose)?
  • Docker isn't caching my RUN commands correctly
  • Share Existing Host Directory with Docker Container?
  • 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.