docker_practice/advanced_network/README.md

16 lines
1.5 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#
> `Docker` [Docker Compose](../compose)
Docker
Docker `docker0` Linux bridge
Docker [RFC1918](https://datatracker.ietf.org/doc/html/rfc1918) 中定义)中的一个地址给 `docker0` 接口。比如典型的 `172.17.42.1`,掩码为 `255.255.0.0`。此后启动的容器内的网口也会自动分配一个同一网段(`172.17.0.0/16`)的地址。
Docker `veth pair` `eth0` `docker0` `veth` `vethAQI2QT`Docker
![Docker ](./_images/network.png)
Docker Linux Docker