@@ -1330,23 +1330,24 @@ particularly interesting when using special options to control network creation,
1330
1330
1331
1331
Valid options for ` [Network] ` are listed below:
1332
1332
1333
- | ** [ Network] options** | ** podman network create equivalent** |
1334
- | -------------------------------------| --------------------------------------|
1335
- | ContainersConfModule=/etc/nvd\. conf | --module=/etc/nvd\. conf |
1336
- | DisableDNS=true | --disable-dns |
1337
- | DNS=192.168.55.1 | --dns=192.168.55.1 |
1338
- | Driver=bridge | --driver bridge |
1339
- | Gateway=192.168.55.3 | --gateway 192.168.55.3 |
1340
- | GlobalArgs=--log-level=debug | --log-level=debug |
1341
- | Internal=true | --internal |
1342
- | IPAMDriver=dhcp | --ipam-driver dhcp |
1343
- | IPRange=192.168.55.128/25 | --ip-range 192.168.55.128/25 |
1344
- | IPv6=true | --ipv6 |
1345
- | Label="XYZ" | --label "XYZ" |
1346
- | NetworkName=foo | podman network create foo |
1347
- | Options=isolate=true | --opt isolate=true |
1348
- | PodmanArgs=--dns=192.168.55.1 | --dns=192.168.55.1 |
1349
- | Subnet=192.5.0.0/16 | --subnet 192.5.0.0/16 |
1333
+ | ** [ Network] options** | ** podman network create equivalent** |
1334
+ | -------------------------------------| -----------------------------------------------------------------|
1335
+ | ContainersConfModule=/etc/nvd\. conf | --module=/etc/nvd\. conf |
1336
+ | DisableDNS=true | --disable-dns |
1337
+ | DNS=192.168.55.1 | --dns=192.168.55.1 |
1338
+ | Driver=bridge | --driver bridge |
1339
+ | Gateway=192.168.55.3 | --gateway 192.168.55.3 |
1340
+ | GlobalArgs=--log-level=debug | --log-level=debug |
1341
+ | Internal=true | --internal |
1342
+ | IPAMDriver=dhcp | --ipam-driver dhcp |
1343
+ | IPRange=192.168.55.128/25 | --ip-range 192.168.55.128/25 |
1344
+ | IPv6=true | --ipv6 |
1345
+ | Label="XYZ" | --label "XYZ" |
1346
+ | NetworkDeleteOnStop=true | Add ExecStopPost to delete the network when the unit is stopped |
1347
+ | NetworkName=foo | podman network create foo |
1348
+ | Options=isolate=true | --opt isolate=true |
1349
+ | PodmanArgs=--dns=192.168.55.1 | --dns=192.168.55.1 |
1350
+ | Subnet=192.5.0.0/16 | --subnet 192.5.0.0/16 |
1350
1351
1351
1352
Supported keys in ` [Network] ` section are:
1352
1353
@@ -1429,6 +1430,10 @@ Set one or more OCI labels on the network. The format is a list of
1429
1430
1430
1431
This key can be listed multiple times.
1431
1432
1433
+ ### ` NetworkDeleteOnStop= ` (defaults to ` false ` )
1434
+
1435
+ When set to ` true ` the network is deleted when the service is stopped
1436
+
1432
1437
### ` NetworkName= `
1433
1438
1434
1439
The (optional) name of the Podman network. If this is not specified, the default value of
0 commit comments