Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

用普通用户运行,却以根用户权限创建$HOME/DoChat目录,是如何做到的呢? #205

Open
augreed opened this issue Aug 28, 2023 · 1 comment

Comments

@augreed
Copy link

augreed commented Aug 28, 2023

系统是opensuse Leap 15.5
用户加入了docker组,别的没干过

aug@localhost:~> groups
users kvm libvirt docker

DoChat目录的权限:

aug@localhost:~> ll -d DoChat/
drwxr-xr-x 4 root root 4096  8月 28 13:13 DoChat/
@lloydzhou
Copy link

dockerd通常以root身份,在后台以服务身份运行。

这个文件夹是dockerd进程创建的。

docker命令可以理解只是以rpc的方式调用了dockerd去运行容器。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants