2021-01-13 16:36:50 +00:00
|
|
|
[Unit]
|
2021-08-28 11:51:11 +00:00
|
|
|
Description=Container Network for %I
|
2021-01-13 16:36:50 +00:00
|
|
|
Wants=network-online.target
|
|
|
|
After=network-online.target
|
2021-03-27 14:54:05 +00:00
|
|
|
ConditionPathExists=!/etc/cni/net.d/%i.conflist
|
2021-01-13 16:36:50 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
2021-03-27 11:19:45 +00:00
|
|
|
RemainAfterExit=true
|
2021-08-28 18:16:29 +00:00
|
|
|
SyslogIdentifier=%N
|
2021-01-13 16:36:50 +00:00
|
|
|
ExecStart=/bin/podman network create %i
|
2021-03-27 11:19:45 +00:00
|
|
|
ExecStop=/bin/podman network rm %i
|
2021-01-13 16:36:50 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|