Disclaimer: I didn't know where to file this issue. The containers-policy.json file is provided by the containers-common RPM. There is also a https://github.com/containers/common repo, but this man page also lives in the https://github.com/containers/image repo. Please transfer this around to the most appropriate location.
It would be nice if there could be a configuration split like most software where system defaults are provided by the OS distributor in /usr/ and then overriden by the user in either /etc/ or $HOME/.config.
For example, for containers.conf the man page reads:
Container engines read the /usr/share/containers/containers.conf, /etc/containers/containers.conf, and /etc/containers/con‐tainers.conf.d/.conf files if they exist. When running in rootless mode, they also read $HOME/.config/containers/containers.conf and $HOME/.config/containers/containers.conf.d/.conf files.
Can we provide a similar structure for containers-policy.json where the configuration provided in /usr/ is sufficient for a working system?
One example where this is a problem is running skopeo on a system that somehow doesn't have a /etc/containers/policy.json. I ran into one such case in osbuild/osbuild#1410 where /usr/ gets mounted in from the "host" but /etc/ doesn't.
Disclaimer: I didn't know where to file this issue. The
containers-policy.jsonfile is provided by thecontainers-commonRPM. There is also a https://github.com/containers/common repo, but this man page also lives in the https://github.com/containers/image repo. Please transfer this around to the most appropriate location.It would be nice if there could be a configuration split like most software where system defaults are provided by the OS distributor in
/usr/and then overriden by the user in either/etc/or$HOME/.config.For example, for
containers.confthe man page reads:Can we provide a similar structure for
containers-policy.jsonwhere the configuration provided in/usr/is sufficient for a working system?One example where this is a problem is running skopeo on a system that somehow doesn't have a
/etc/containers/policy.json. I ran into one such case in osbuild/osbuild#1410 where/usr/gets mounted in from the "host" but/etc/doesn't.