Podman not building images in f38

$ cat Containerfile 
FROM quay.io/centos/centos:stream9

RUN dnf install -y bind-utils
podman build -t test:latest .
STEP 1/2: FROM quay.io/centos/centos:stream9
STEP 2/2: RUN dnf install -y bind-utils
error running container: from /usr/bin/crun creating container for [/bin/sh -c dnf install -y bind-utils]: sd-bus call: Interactive authentication required.: Permission denied
: exit status 1
ERRO[0000] did not get container create message from subprocess: EOF 
Error: building at STEP "RUN dnf install -y bind-utils": while running runtime: exit status 1

XDG_RUNTIME_DIR and DBUS_SESSION_BUS_ADDRESS are both set correctly.

Have anybody seen this? I find very old github issues about something similar but no

Oh, so when I don’t use systemd for the cgroup manager, it works:

podman --cgroup-manager cgroupfs build -t test:latest .

Podman is using cgroup v2.

Hmmm…

I ended up just opening an issue: Unable to build with podman with non-root user: sd-bus call: Interactive authentication required.: Permission denied · Issue #19556 · containers/podman · GitHub

1 Like