Rootless podman issues

I’ve been getting an error message ever since upgrading to Rocky Linux whenever I run my rootless Podman images.
error mounting subscriptions, skipping entry in /usr/share/containers/mounts.conf: getting host subscription data failed: failed to read subscriptions from “/usr/share/rhel/secrets”: open /usr/share/rhel/secrets/rhsm/rhsm.conf: permission denied
It seems to be also affecting the container networking, since that started also having issues at the same time. Is there some sort of way that I should configure Rocky to be able to access these files properly?

If anyone had this also happen to them, it seemed to be due to a missing configuration file in the home folder. Networking was a separate issue, but the error message can easily be resolved.
Sharing this in case it helps anyone else:
https://bugzilla.redhat.com/show_bug.cgi?id=1874621
While lie fixed this was just calling:
touch ~/.config/containers/mounts.conf
to create an empty mount.conf . It will stop giving errors after that.

2 Likes