If no policy.json file is present in any of the accepted locations, podman gives an error but it refers only to /etc/containers/policy.json, not to other possible paths for this config.
Steps to reproduce the issue
$ podman run -it --rm registry.access.redhat.com/ubi8/httpd-24
Describe the results you received
Error: open /etc/containers/policy.json: no such file or directory
Describe the results you expected
something like
Error: no policy.json file found at any of the following: <...>
Issue Description
If no
policy.json
file is present in any of the accepted locations,podman
gives an error but it refers only to/etc/containers/policy.json
, not to other possible paths for this config.Steps to reproduce the issue
$ podman run -it --rm registry.access.redhat.com/ubi8/httpd-24
Describe the results you received
Error: open /etc/containers/policy.json: no such file or directory
Describe the results you expected
something like
Error: no policy.json file found at any of the following: <...>
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
No response
Additional information
No response