Skip to content

docs: fix configuring podman container policy for current user#333

Open
Skycam3014 wants to merge 1 commit intosecureblue:livefrom
Skycam3014:fix-user-container-policy
Open

docs: fix configuring podman container policy for current user#333
Skycam3014 wants to merge 1 commit intosecureblue:livefrom
Skycam3014:fix-user-container-policy

Conversation

@Skycam3014
Copy link
Copy Markdown

> The same command without run0 will set this policy for the current user only.
To my understanding, this line appears to be wrong. Running podman image trust set -t accept registry.fedoraproject.org/fedora without elevated privileges results in Error: open /etc/containers/policy.json permission denied.

According to the Podman man page and this open issue over there, podman image trust requires elevated privileges and the correct way to set policies for the current user is to edit $HOME/.config/containers/policy.json.

By default, the policy is read from $HOME/.config/containers/policy.json, if it exists, otherwise from /etc/containers/policy.json

Also added guidance to copy the existing system container policy to ~/.config/containers/policy.json as it is completely overridden by the current user's configuration.

Happy to make any wording or process/instruction changes!

@codacy-production
Copy link
Copy Markdown

codacy-production bot commented Apr 7, 2026

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

fix: podman current user container policy

fix: instructions to create config dir

fix trailing whitespace
@Skycam3014 Skycam3014 force-pushed the fix-user-container-policy branch from 9a3dc39 to 7d76ded Compare April 7, 2026 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant