10장. Communicating among containers
Learn about establishing communication between containers, applications, and host systems leveraging port mapping, DNS resolution, or orchestrating communication within pods.
10.1. The network modes and layers 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
There are several different network modes in Podman:
-
bridge- creates another network on the default bridge network -
container:<id>- uses the same network as the container with<id>id -
host- uses the host network stack -
network-id- uses a user-defined network created by thepodmannetwork create command -
private- creates a new network for the container -
slirp4nets- creates a user network stack withslirp4netns, the default option for rootless containers -
pasta- high performance replacement forslirp4netns. You can usepastabeginning with Podman v4.4.1. -
none- create a network namespace for the container but do not configure network interfaces for it. The container has no network connectivity. -
ns:<path>- path to a network namespace to join
참고
The host mode gives the container full access to local system services such as D-bus, a system for interprocess communication (IPC), and is therefore considered insecure.