Document existence of x-podman.interface_name

Signed-off-by: Jörn Hirschfeld <joern@hirschfeld.tech>
This commit is contained in:
Jörn Hirschfeld 2025-02-23 00:44:36 +01:00
parent 1cdc9e6552
commit b1eb558b41

View File

@ -86,7 +86,7 @@ networks:
- subnet: "192.168.1.0/24"
services:
webserver
webserver:
image: "busybox"
command: ["/bin/busybox", "httpd", "-f", "-h", "/etc", "-p", "8001"]
networks:
@ -98,6 +98,10 @@ services:
mac_address: "02:bb:bb:bb:bb:bb" # mac_address is supported
```
## Per-network interface name
Using `x-podman.interface_name` within a containers network config you can specify the interface name inside the container.
## Podman-specific network modes
Generic docker-compose supports the following values for `network-mode` for a container: