18

How can I find out which users are in the docker group and allowed to start docker containers? (Docker 1.12.1)

2 Answers 2

35

You can use the following:

grep /etc/group -e "docker"
grep /etc/group -e "sudo"
18

Docker creates the docker group, but also any sudoers can use Docker, so you need to check two group memberships:

getent group sudo
getent group docker

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.