Podman in rootless Nixos #25813
yaroslavkasatikov
started this conversation in
General
Replies: 1 comment 4 replies
-
it seems like you've not configured any additional UID/GID for the rootless user:
so the GID 42 is not mapped inside the user namespace. You need to change the configuration for your system and allocate more IDs to your user |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description
Podman can not pull image in rootless mode.
I got this error when buildah works fine:
I tried many steps from different AI recomendation and stackoverflow-like.
these lead to
added userns = “auto” into storage.conf (no results)
Tryied different images for pull (I understood that pull is blocked here)
Playing with isolation types
tryied to addd --userns=keep-id (podman/docs/tutorials/rootless_tutorial.md at main · containers/podman ·
GitHub)
Steps to reproduce the issue
Steps to reproduce the issue
run
podman pull alpine
Preparation:
it's unprivileged container.
I have configured dockerfile:
Run it with storage driver VFS and isolation type "chroot"
Buildah works fine:
setuid and setgit configured correct:
so don't know what is the issue :(
Describe the results you received
$ podman pull alpine
Resolved "alpine" as an alias (/etc/containers/registries.conf.d/000-shortnames.conf)
Trying to pull docker.io/library/alpine:latest...
Getting image source signatures
Copying blob f18232174bc9 done |
ERRO[0001] While applying layer: ApplyLayer stdout: stderr: potentially insufficient UIDs or GIDs available in user namespace (requested 0:42 for /etc/shadow): Check /etc/subuid and /etc/subgid if configured local
Copying blob f18232174bc9 done |
Error: copying system image from manifest list: writing blob: adding layer with blob "sha256:f18232174bc91741fdf3da96d85011092101a032a93a388b79e99e69c2d5c870"/""/"sha256:08000c18d16dadf9553d747a58cf44023423a9ab010aab96cf263d2216b8b350": ApplyLayer stdout: stderr: potentially insufficient UIDs or GIDs available in user namespace (requested 0:42 for /etc/shadow): Check /etc/subuid and /etc/subgid if configured locally and run "podman system migrate": lchown /etc/shadow: invalid argument exit status 1
Describe the results you expected
Image should be pulled
podman info output
Podman in a container
Yes
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
Beta Was this translation helpful? Give feedback.
All reactions