第 9 章 Managing a container network
The chapter provides information about how to communicate among containers.
9.1. Listing container networks 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
In Podman, there are two network behaviors - rootless and rootful:
- Rootless networking - the network is setup automatically, the container does not have an IP address.
- Rootful networking - the container has an IP address.
Prerequisites
The container-tools meta-package is installed.
Procedure
List all networks as a root user:
# podman network ls NETWORK ID NAME VERSION PLUGINS 2f259bab93aa podman 0.4.0 bridge,portmap,firewall,tuning- By default, Podman provides a bridged network.
List of networks for a rootless user is the same as for a rootful user.
For more information, see the
podman-network-ls(1)man page on your system.