- Docker and Kubernetes for Java Developers
- Jaroslaw Krochmalski
- 220字
- 2021-07-02 18:44:52
Bridge
This is the default network type in Docker. When the Docker service daemon starts, it configures a virtual bridge, named docker0. If you do not specify a network with the docker run -net=<NETWORK> option, the Docker daemon will connect the container to the bridge network by default. Also, if you create a new container, it will be connected to the bridge network. For each container that Docker creates, it allocates a virtual Ethernet device which will be attached to the bridge. The virtual Ethernet device is mapped to appear as eth0 in the container, using Linux namespaces, as you can see in the following diagram:

The in-container eth0 interface is given an IP address from the bridge's address range. In other words, Docker will find a free IP address from the range available on the bridge and will configure the container's eth0 interface with that IP address. From now on, if the new container wants to, for example, connect to the Internet, it will use the bridge; the host's own IP address. The bridge will automatically forward packets between any other network interfaces that are attached to it and also allow containers to communicate with the host machine, as well as with the containers on the same host. The bridge network will probably be the most frequently used one.
- Learning Python Web Penetration Testing
- Learning Cython Programming(Second Edition)
- JavaScript+DHTML語法與范例詳解詞典
- Lua程序設計(第4版)
- Visual C++應用開發
- 深入淺出Go語言編程
- Mastering Python Design Patterns
- Spring Security Essentials
- 代替VBA!用Python輕松實現Excel編程
- Java編程從入門到精通
- INSTANT Premium Drupal Themes
- SQL Server實例教程(2008版)
- Head First Kotlin程序設計
- Python實戰指南:手把手教你掌握300個精彩案例
- 陪孩子像搭積木一樣學編程:Python真好玩+Scratch趣味編程(全2冊)