2017-02-14 137 views

回答

1

的搬运工容器和主机之间的第一个份额净值命名空间。

例如,如果没有--net=host推出了nethogs容器不会显示太多,看

看到https://hub.docker.com/r/k3ck3c/nethogs_git/

,如果我不把--net=host泊坞窗容器没有看到任何网卡,所以我得到

No devices to monitor. Use '-a' to allow monitoring loopback interfaces or devices that are not up/running

它时便会有OpenVPN的容器相同

你会发现,主机的PID和净命名空间将提供给容器,在命令

docker run -it --rm --net=host --pid=host k3ck3c/nethogs_git wlan0

第二个说,集装箱港口8200将在端口8200上发布主机,和相同的端口34016.更具体地,

-p 9000:10000

的装置的端口的容器10000将主机的端口9000上公布。