How can I find out which users are in the docker group and allowed to start docker containers? (Docker 1.12.1)
Asked
Active
Viewed 7.8k times
2 Answers
30
You can use the following:
grep /etc/group -e "docker"
grep /etc/group -e "sudo"

Farhad Farahi
- 35,528
- 7
- 73
- 70
15
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

Elton Stoneman
- 17,906
- 5
- 47
- 44