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

非root用户运行docker #101

Open
Triment opened this issue Mar 21, 2024 · 0 comments
Open

非root用户运行docker #101

Triment opened this issue Mar 21, 2024 · 0 comments
Labels
release 发布文章

Comments

@Triment
Copy link
Owner

Triment commented Mar 21, 2024

添加用户组

sudo groupadd docker

给用户组添加用户

sudo usermod -aG docker $USER

刷新用户组(非常重要,不然还是会permission denied )

newgrp docker

准备好使用了

docker ps -a
@Triment Triment added the release 发布文章 label Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release 发布文章
Projects
None yet
Development

No branches or pull requests

1 participant