I'm trying to get this simple setup to work with krun. It works fine with crun, but as soon as I switch runtime (setting /etc/containers/containers.conf), I get a 502 Bad Gateway error.
podman pull docker.io/nginxinc/nginx-unprivileged:mainline-alpine-slim
podman pull ghcr.io/silvenga/redlib:0
systemctl --user daemon-reload
systemctl --user start redlib
systemctl --user start nginx
The containers start up correctly but are effectively unusable. I've tried this on two different operating systems (Manjaro and Arch Linux).
demo.nework:
redlib.container:
[Unit]
After=network-online.target demo.network
Wants=network-online.target
[Container]
ContainerName=redlib
Image=ghcr.io/silvenga/redlib:0
Network=demo.network
[Install]
WantedBy=default.target
nginx.container:
[Unit]
After=network-online.target redlib.service demo.network
Wants=network-online.target
[Container]
ContainerName=nginx
Image=docker.io/nginxinc/nginx-unprivileged:mainline-alpine-slim
Network=demo.network
PublishPort=8081:8081
Volume=%h/Contenitori/Nginx/proxy.conf:/etc/nginx/nginx.conf:ro,Z
[Install]
WantedBy=default.target
nginx.conf:
pid /tmp/nginx.pid;
events {
worker_connections 2048;
use epoll;
multi_accept on;
}
http {
proxy_temp_path /tmp/proxy_temp;
client_body_temp_path /tmp/client_temp;
fastcgi_temp_path /tmp/fastcgi_temp;
uwsgi_temp_path /tmp/uwsgi_temp;
scgi_temp_path /tmp/scgi_temp;
server {
listen 8081;
server_name _;
client_body_timeout 8s;
client_header_timeout 8s;
send_timeout 8s;
location / {
proxy_pass http://redlib:8080;
}
}
}
I tried a few other things, like switching between pasta and slirp4netns, but it still didn't work.
As I said, it must be krun's fault, because everything works fine without it.
I'm trying to get this simple setup to work with krun. It works fine with crun, but as soon as I switch runtime (setting
/etc/containers/containers.conf), I get a502 Bad Gatewayerror.The containers start up correctly but are effectively unusable. I've tried this on two different operating systems (Manjaro and Arch Linux).
demo.nework:
redlib.container:
nginx.container:
nginx.conf:
I tried a few other things, like switching between pasta and slirp4netns, but it still didn't work.
As I said, it must be krun's fault, because everything works fine without it.