Unable to add container in rolling 1.5, missing /etc/containers/policy.json

I am using a rolling 1.5 release (1.5-rolling-202408010023) and cannot add a container image because the policy.json file is msising

$ add container image adguard/adguardhome:v0.107.52
Error: open /etc/containers/policy.json: no such file or directory

and yep it appears it is not there:

$ ls /etc/containers/
containers.conf  networks  registries.conf  storage.conf

After adding a default “insecure” policy (per podman) I was able to get it to pull:

$ cat /etc/containers/policy.json
{
    "default": [
        {
            "type": "insecureAcceptAnything"
        }
    ]
}

Which version of Podman is installed?

$ podman --version
podman version 4.9.5

Thanks for checking.

Podman was recently upgraded in the build, but from the Changelog only 5.0.0 should require a valid policy.json: podman/RELEASE_NOTES.md at main · containers/podman · GitHub
But that assumption does not seem true

I’ve opened an issue at ⚓ T6635 Upgraded Podman 4.9.5 missing policy.json

This topic was automatically closed after 14 days. New replies are no longer allowed.