How to running Podman on Debian 12? #244
-
In the template, the docs used Fedora to run Podman. I successfully ran it according to the README, but when I switched to Debian 12, it showed the following error. rootless@podman:~$ podman run hello-world
ERRO[0000] running `/usr/bin/newuidmap 513 0 1000 1 1 65536 65536`: newuidmap: open of uid_map failed: Permission denied
Error: cannot set up namespace using "/usr/bin/newuidmap": exit status 1 The settings for subuid and subgid should be correct, and the template settings are as follows. rootless@podman:~$ cat /etc/subuid
rootless:65536:65536
rootless@podman:~$ cat /etc/subgid
rootless:65536:65536
Did I miss anything, or is there something else that needs to be set in Debian 12? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
when I create Debian 12 with --private-users=524288:65536 --private-users-ownership=chown, the following error will be prompted.
|
Beta Was this translation helpful? Give feedback.
-
It seems that only the rootless user does not have permission for /usr/bin/newuidmap /usr/bin/newgidmap. chmod u-s /usr/bin/newuidmap
chmod u-s /usr/bin/newgidmap |
Beta Was this translation helpful? Give feedback.
-
How to create a Jail running Rocky Linux on TrueNAS Scale 24.04.2? |
Beta Was this translation helpful? Give feedback.
It seems that only the rootless user does not have permission for /usr/bin/newuidmap /usr/bin/newgidmap.