Help using networks with quadlet #26475
-
I'm pretty new to using quadlets outside of simple stuff but I am trying to setup nextcloud. I have three containers, and I know they run okay as a compose file but when I converted them to quadlets using the podlet tool I ran into issues that I've spent the afternoon debugging and I just don't understand what's wrong. I have these four files right now:
For some reason when I try to start any of them I get: I assume theres some issue with how I use the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Does it work if you append
Reference: https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html#network Side note 1
in your file nextcloud-caddy.container Assuming you are running podman on a Linux system that has systemd, you could remove those lines and instead use socket activation https://github.com/eriksjolund/podman-caddy-socket-activation/tree/main/examples/example4 Caddy will then see the correct source IP address of incoming connections. That can otherwise be a problem when running a container in a custom network with rootless Podman. Side note 2 |
Beta Was this translation helpful? Give feedback.
Does it work if you append
.network
?Reference:
If the name of the network ends with .network, a Podman network called systemd-$name is used, and the generated systemd service contains a dependency on the $name-network.service. Such a network can be automatically created by using a $name.network Quadlet file. Note: the corresponding .network file must exist.
https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html#network
Side note 1
Regarding
in your file nextcloud-caddy.container
Assuming you are running podman on a Linux system that has systemd, you could remove those lines and instead use s…