Replies: 8 comments 12 replies
-
We have never tried this without newuidmap and newgidmap installed. If you add a newuidmap and newgidmap shell script to your PATH environment, you might be able to get it to work. $ echo $PATH If I setup /home/dwalsh/bin/newuidmap and /home/dwalsh/bin/newgidmap, it would probably work |
Beta Was this translation helpful? Give feedback.
-
Thanks for the suggestion! Unfortunately, when I try this, it attempts to use $ podman info --debug
ERRO[0000] running `/home/jupyter/.local/podman/bin/newuidmap 1618881 0 1001 1 1 165536 65536`: newuidmap: write to uid_map failed: Operation not permitted
Error: cannot set up namespace using "/home/jupyter/.local/podman/bin/newuidmap": should have setuid or have filecaps setuid: exit status |
Beta Was this translation helpful? Give feedback.
-
Yes, of course: $ /home/jupyter/.local/podman/bin/newuidmap
usage: newuidmap <pid> <uid> <loweruid> <count> [ <uid> <loweruid> <count> ] ...
$ podman info --debug
ERRO[0000] running `/home/jupyter/.local/podman/bin/newuidmap 1618881 0 1001 1 1 165536 65536`: newuidmap: write to uid_map failed: Operation not permitted
Error: cannot set up namespace using "/home/jupyter/.local/podman/bin/newuidmap": should have setuid or have filecaps setuid: exit status |
Beta Was this translation helpful? Give feedback.
-
You put the actual binaries there. I just wanted to have an app that returned success. not the real app. ln -s /bin/true newuidmap For example |
Beta Was this translation helpful? Give feedback.
-
I tried this on a Fedora 38 machine
Note, the two first lines in the output ERRO[0000] cannot find UID/GID for user test1: no subuid ranges found for user "test1" in /etc/subuid - check rootless mode in man pages. Variation1 of the experimentI tried replacing
It worked. Variation2 of the experimentI tried replacing
with
It worked. Variation3 of the experimentI tried
It didn't make a difference in the examples above. Variation4 of the experimentRemove the option cannot setresgid: Invalid argument
The difference is that subuids and subgids are allocated to the user when Variation5 of the experiment
Previous discussion |
Beta Was this translation helpful? Give feedback.
-
@giuseppe PTAL |
Beta Was this translation helpful? Give feedback.
-
setresgid is a system call not an executable. |
Beta Was this translation helpful? Give feedback.
-
we have a check in place where if you specify Can you try without using |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi folks,
I'm trying to get Podman working in an environment where not only I don't have root privileges, but we're not permitted to install Podman (or any other executables or configuration files) globally or to make
newuidmap
available to users. In other words, we have to operate within the constraints of a regular user, without the ability to configure anything on the host that's outside of user$HOME
- i.e. a sort of "fully rootless mode".I should note that I'm ok with running all processes as my UID and having basically no isolation from inside the container - so a container runner like Podman is just used to conveniently run executables packaged in OCI/Docker images (together with their dynamic libraries independent of those on the host).
I was trying to get this working by having
ignore_chown_errors = "true"
instorage.conf
. However, when I run Podman installed under~/.local/podman/bin
, it still fails for each and every command with:I'm probably misunderstanding the purpose of
ignore_chown_errors = "true"
- is there any other way to make this work? I've also triedNEWUIDMAP=/bin/false podman ...
andpodman run --uidmap 0:0:1 ...
, but in each case evenpodman info --debug
fails with the same error.Note that I do have
podman version 4.5.1
, along withall installed under
~/.local/podman/bin
. I also haveand
Fwiw, all of these were configured using
on a host with
Is it even possible to do achieve what I've described with Podman?
Thank you very much in advance for any tips.
Beta Was this translation helpful? Give feedback.
All reactions