Replies: 2 comments 4 replies
-
Need more details on the arm64 environment - a |
Beta Was this translation helpful? Give feedback.
1 reply
-
Also I used
(where 40001 is the uid specified with the
(both at the board and at the Ubuntu) Thus, what reason could cause such behavior? Or, in other words,
|
Beta Was this translation helpful? Give feedback.
3 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.
-
I need to start the rootless container from another non-root user (preferrably by its id), i.e.:
user@vbox:~$ podman run --user 20000 ( . . . )
where
user
is non-root user,20000
is the id of another non-root user./etc/subuid
and/etc/subgid
contain the appropriate offset, smth like:user:10000:65536
inside each of them.
First, I try the mentioned command in Ubuntu:
user@vbox:~$ podman run -dt --user 20000 localhost/test-container sleep 123
and it works correctly, namely:
pay attention that
sleep 123
process executes from the uid 29999 from the point of view of the host OS, which is exactly "userid + offset - 1".It works correctly (starts the process inside the container from user specified by the
--user
) at the following devices:But then I try to do the same at the ARM_64 based board with the Linux OS. And it doesn't work at all for non-root and even for root:
[root@host ~]# podman run -dt --user 20000 localhost/test-container sleep 123
(it starts process inside the container from the current user and doesn't take into account
--user
option)I tried to use the same Linux kernel versions (5.4), almost-the-same podman versions (3.2.1 and 3.2.4) and almost-the-same versions of crun (1.4.5 and 1.5.0) at the ARM board and at the VM, but it still doesn't work at the board, while it works at the VM with Ubuntu even if versions of Linux, podman and crun differs.
So, can you suggest me what I am doing wrong and why the container doesn't start from user specified by the
--user
option?Beta Was this translation helpful? Give feedback.
All reactions