そろそろmsys2なりVMからwsl2に移行しても良いかなとおもってPodmanも試してみました
概ね How to run Podman on Windows with WSL2 | Enable Sysadmin のとおりで良いのですが、最新版のPodmanの仕様に合わせて最後の手順を変えます
Rootless configuration file changes If you plan to run podman as a non-root user, you should start with a simple podman command like: $ podman info This action will create the Podman configuration file $HOME/.config/containers/libpod.conf. Simply edit this file and change the value of events_logger to <file>.
ここで言いたい内容は man podman すると分かるのですが、つまりはこういうことです。
そこで以下のように手順を変えます
conf_src="/usr/share/containers/containers.conf"
conf_user="$HOME/.config/containers/containers.conf"
mkdir -p "${conf_user%/*}"
sed '/events_logger/{s/^# //; s/journald/file/}' "$conf_src" >"$conf_user"
これにより「pod event が journal に書けないぜ」的なエラーが無くなります
# こういう奴が消える ERRO[0000] unable to write pod event: "write unixgram @0001c->/run/systemd/journal/socket: sendmsg: no such file or directory"
もちろん podman --events-backend=file でも消えます
こちらが良い人は alias podman='podman --events-backend=file' しておくのが良いかもしれませんね