> For the complete documentation index, see [llms.txt](https://sdn.feisky.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sdn.feisky.xyz/rong-qi-wang-luo/index/host.md).

# Host 网络

最简单的网络模型就是让容器共享Host的network namespace，使用宿主机的网络协议栈。这样，不需要额外的配置，容器就可以共享宿主的各种网络资源。

## 优点

* 简单，不需要任何额外配置
* 高效，没有NAT等额外的开销

## 缺点

* 没有任何的网络隔离
* 容器和Host的端口号容易冲突
* 容器内任何网络配置都会影响整个宿主机
