Get the App
SLTechnology News&Howtos  ›  Servers  › 

The Container Network for introduction and Application of Docker

Shulou Source: shulou.com Published: 2022-06-02 19:19:58 09月22日 Update

Network mode

Bridge-net=bridge default network, create a docker0 bridge after Docker starts, and the default created container is also added to this bridge. The host-net=host container does not get a separate network namespace, but instead shares one with the host. This means that the container will not have its own network card information, but will use the host. Containers are isolated except for the network. None-net=none gets a separate network namespace, but does not do any network configuration for the container, which requires manual configuration. Container-net=container:Name/ID uses the same network namespace as the specified container, has the same network configuration information, and the two containers are isolated except for the network. The custom network is the same as the default bridge principle, but the custom network has internal DNS discovery and can communicate with each other through container name or hostname container

two。 Principle of container network access

Tags: Container network configuration information principle host host but bridge independent isolated two host between can pass mean manual mode network card network communication Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Shulou Information Xiaomi Huawei macOS