10.2. ネットワークの検査
podman network inspect コマンドを使用して、特定のネットワークの詳細な設定を表示します。これにより、サブネット、ゲートウェイ、有効になっているプラグインなどの設定が明確になります。
前提条件
-
container-toolsメタパッケージがインストールされている。
手順
デフォルトの
podmanネットワークを調べます。$ podman network inspect podman [ { "cniVersion": "0.4.0", "name": "podman", "plugins": [ { "bridge": "cni-podman0", "hairpinMode": true, "ipMasq": true, "ipam": { "ranges": [ [ { "gateway": "10.88.0.1", "subnet": "10.88.0.0/16" } ] ], "routes": [ { "dst": "0.0.0.0/0" } ], "type": "host-local" }, "isGateway": true, "type": "bridge" }, { "capabilities": { "portMappings": true }, "type": "portmap" }, { "type": "firewall" }, { "type": "tuning" } ] } ]IP 範囲、有効なプラグイン、ネットワークの種類など、ネットワークの設定を確認できます。
詳細は、システム上の
podman-network-inspect(1)man ページを参照してください。