简体   繁体   English

当运行docker时,kubectl中的客户参数

[英]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. 如何通过kubectl将--net = host参数传递给docker。

You can set the "hostNetwork" field to true in the pod spec to enable host networking. 您可以在pod规范中将“ hostNetwork”字段设置为true以启用主机联网。 See the kube-apiserver manifest for an example. 有关示例,请参见kube-apiserver清单

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM