Hi, I need help with podman-compose setup.
I tried to follow the guide for podman here:
The network instructions there appear to work for bare podman (I managed to build the image with podman build, and during the build outside network was accessible).
In the result, new podman0 interface is added, with all firewall rules set suffice for wan network assess from within the container.
The problem arose with podman-compose - resulting container has no access to outside network.
I'm trying to run just simple Caddy web server with it.
On start, podman-compose apparently creates additional temporary podman1 interface (see 'sni-router_default' network below), which doesn't have all the firewall rules needed for network access, so outgoing connections are refused:
## in the compose dir
# podman-compose up
...
INFO:podman_compose:building images: ...
INFO:podman_compose:['podman', 'inspect', '-t', 'image', '-f', '{{.Id}}', 'sni-router_web']
INFO:podman_compose:['podman', 'inspect', '-t', 'image', '-f', '{{.Id}}', 'sni-router_haproxy']
INFO:podman_compose:['podman', 'ps', '--filter', 'label=io.podman.compose.project=sni-router', '-a', '--format', 'json']
INFO:podman_compose:podman pod exists pod_sni-router
INFO:podman_compose:exit code: 1
INFO:podman_compose:podman pod create --name=pod_sni-router --infra=false --share=
640a7714978873cfa4968ae9f85928643b8271a6739603650029c321e1fe50b3
INFO:podman_compose:exit code: 0
INFO:podman_compose:creating missing containers: ...
INFO:podman_compose:['podman', 'network', 'exists', 'sni-router_default']
INFO:podman_compose:['podman', 'network', 'create', '--label', 'io.podman.compose.project=sni-router', '--label', 'com.docker.compose.project=sni-router', 'sni-router_default']
INFO:podman_compose:['podman', 'network', 'exists', 'sni-router_default']
...
[web] | {"level":"error","ts":1778934236.8158476,"logger":"tls.obtain","msg":"will retry","error":"... Obtain: registering account [] with server: provisioning client: performing request: Get \"https://acme-staging-v02.api.letsencrypt.org/directory\": dial tcp: lookup acme-staging-v02.api.letsencrypt.org on 10.90.0.1:53: read udp 10.90.0.3:58393->10.90.0.1:53: read: connection refused","attempt":9,"retrying_in":1200,"elapsed":3739.669489355,"max_duration":2592000}
The podman1 interface has different subnet than the podman0 one, and I couldn't just use it in /etc/config/network instead:
# ip addr
...
1610: podman0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN qlen 1000
link/ether 16:e2:bf:13:10:59 brd ff:ff:ff:ff:ff:ff
inet 10.88.0.1/16 brd 10.88.255.255 scope global podman0
valid_lft forever preferred_lft forever
inet 10.89.0.1/16 brd 10.89.255.255 scope global podman0
valid_lft forever preferred_lft forever
1611: podman1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
link/ether a6:30:1e:43:14:47 brd ff:ff:ff:ff:ff:ff
inet 10.90.0.1/24 brd 10.90.0.255 scope global podman1
valid_lft forever preferred_lft forever
inet6 fe80::a430:1eff:fe43:1447/64 scope link
valid_lft forever preferred_lft forever
At this point I'm pretty stuck.
Any help is appreciated, thanks.

