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

Wrong group for docker.sock prevent users requests #18

Closed
anki-code opened this issue Aug 4, 2019 · 1 comment
Closed

Wrong group for docker.sock prevent users requests #18

anki-code opened this issue Aug 4, 2019 · 1 comment

Comments

@anki-code
Copy link
Contributor

anki-code commented Aug 4, 2019

Hi! Thank you for great solution! You rock!

I'm trying to allow users to use DinD but got an error:

# docker run -it --rm -e DIUID_DOCKERD_FLAGS="--group docker" weberlars/diuid bash
root# useradd -m -G docker penguin && chsh -s /bin/bash penguin && su - penguin
penguin$ docker ps # Got permission denied...
penguin$ stat /var/run/docker.sock
Access: (0600/srw-------)  Uid: (    0/    root)   Gid: (    0/    root)

As you can see --group flag was ignored and the permission is 0600 root:root. How can I fix it to 0660 root:docker?

cc @AkihiroSuda

@anki-code
Copy link
Contributor Author

PR here #19

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

1 participant