I have a host service managed by systemd which listens on the Podman default network interface (cni-podman0
) so that containers can talk to it.
The problem I have, is that Podman only creates the network interface when the first container is started. That means when the host service which the containers depend on is started, the network interface isn't up and the service fails to listen on it.
So the dependency chain is: Podman container -needs> Host Service -needs> CNI network interface
But currently the only way I know of to bring up the interface is starting the container.
How can I make systemd tell Podman / CNI to start the default bridge network interface, so that I can depend on that in the host service unit?
Is there a command to bring up the interface explicitly, I could put in a unit file?