You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
runsc: Make identity user mapping work for filesystem
Fix#9918.
Currently, the rootless mode(runsc is called by no-root user)
is not working well with the filesystem if we uses a non-root user
in runsc container. This is because the runsc is mapping the
host non-root user to root-user in container.
In some cases we need to map the host non-root user to runsc
container non-root user (with the same uid).
After this patch, the following filesystem operations works well.
test@test-virtual-machine:~/test$ ./runsc -ignore-cgroups --network host run abc
id
uid=1000(test) gid=1000(test) groups=1000(test)
touch /tmp/runsctest
echo aaa > /tmp/runsctest
ls -lh /tmp/runsctest
-rw-r--r-- 1 test test 4 Jun 29 18:46 /tmp/runsctest
exit
test@test-virtual-machine:~/test$ ls -lh /tmp/runsctest
-rw-r--r-- 1 test test 4 6月 29 18:46 /tmp/runsctest
test@test-virtual-machine:~/test$ cat /tmp/runsctest
0 commit comments