pacman: error: failed to initialize alpm library
to install git and paru into an arch linux docker image, i followed https://gist.github.com/lbrame/84d445fae17ad98cd6969b30b0f118e8 to set up rootless containers, installed podman and then:
> podman run -it --entrypoint=bash archlinux:base-devel
WARN[0000] Failed to decode the keys ["storage.options.override_kernel_check" "storage.options.thinpool.ostree_repo" "storage.options.thinpool.skip_mount_home"] from "/etc/containers/storage.conf".
Resolved "archlinux" as an alias (/etc/containers/registries.conf.d/00-shortnames.conf)
Trying to pull docker.io/archlinux/archlinux:base-devel...
Getting image source signatures
Copying blob e9492d1d75a7 done
Copying blob ab62f34b645b done
Copying config 7078031912 done
Writing manifest to image destination
Storing signatures
[root@868657af4ff2 /]#
[root@868657af4ff2 /]#
[root@868657af4ff2 /]# pacman
error: failed to initialize alpm library:
(root: /, dbpath: /var/lib/pacman/)
could not find or read directory