mirror of
https://github.com/containers/podman.git
synced 2025-11-30 10:07:33 +08:00
Previously, the following network block did not update using
docker-compose:
```
networks:
default:
driver: bridge
driver_opts:
mtu: 9000
```
In the API, the network options were previously not being handled when the
network was being created. I translated the docker options into podman
options, and added the options to the network.
When doing `podman network inspect <network>`, the results now contain
`"mtu": "9000"`
Fixes: #14482
Signed-off-by: Jake Correnti <jcorrenti13@gmail.com>
27 lines
449 B
YAML
27 lines
449 B
YAML
version: '3.7'
|
|
|
|
services:
|
|
nginx:
|
|
image: alpine
|
|
ports:
|
|
- 8000:5000
|
|
networks:
|
|
- default
|
|
- macvlan_net
|
|
|
|
networks:
|
|
default:
|
|
driver: bridge
|
|
driver_opts:
|
|
com.docker.network.bridge.name: docker0
|
|
com.docker.network.driver.mtu: 9000
|
|
macvlan_net:
|
|
driver: macvlan
|
|
driver_opts:
|
|
mode: bridge
|
|
ipam:
|
|
config:
|
|
-
|
|
subnet: 192.168.20.0/24
|
|
gateway: 192.168.20.1
|