Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new containers policy prevents some valid local podman functions #82

Closed
bsherman opened this issue Jul 23, 2023 · 0 comments · Fixed by #83
Closed

new containers policy prevents some valid local podman functions #82

bsherman opened this issue Jul 23, 2023 · 0 comments · Fixed by #83
Assignees
Labels
bug Something isn't working

Comments

@bsherman
Copy link
Contributor

I have found that since ublue-os/main#28 was implemented I have a problem with a podman build use case.

When I do a local podman build -t Containerfile foo the build succeeds, and results in an image being created.

but then... when I do podman build -t Containerfile foo2 the final step fails and the image is not created.

The resulting error is like this

[2/2] COMMIT foo2
Error: copying image "4f4d5f3b2f00971d1455bcbe0e5d4c86529bff0fc79f10fe2945d94e37251113": Source image rejected: Running image containers-storage:[overlay@/home/benjamin/.local/share/containers/storage+/run/user/10000/containers]@4f4d5f3b2f00971d1455bcbe0e5d4c86529bff0fc79f10fe2945d94e37251113 is rejected by policy.

I have already found a working solution. There is a transport missing in /etc/containers/policy.json.

By adding containers-storage as another transport with "type": "insecureAcceptAnything" things seem to work as normal again.

@bsherman bsherman added the bug Something isn't working label Jul 23, 2023
@bsherman bsherman self-assigned this Jul 23, 2023
bsherman added a commit that referenced this issue Jul 23, 2023
Incidentally fixes typos in dates on spec files which were found during
testing.

closes #82
github-merge-queue bot pushed a commit that referenced this issue Jul 23, 2023
Incidentally fixes typos in dates on spec files which were found during
testing.

closes #82

Co-authored-by: Jorge O. Castro <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant