How to show all users in dockers group?

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

  • How to migrate an existing service docker?
  • Installing cassandra on RHEL using docker
  • How to change location of “.docker” directory
  • How-to: Dockerfile layer(s) reuse / reference
  • Connect shipyard with existing docker images?
  • Using ecryptfs inside Docker without --privileged. Appropriate value for --device?
  • Dockerfile vs. docker-compose VOLUME
  • vagrant Multipe networking
  • Stop and restart containers with docker-compose
  • How to run maven test with mysql running in docker
  • What are the differences between dockerfile and stackbrew users on docker hub
  • How can I configure an index pattern?
  • 2 Solutions collect form web for “How to show all users in dockers group?”

    You can use the following:

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

    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
    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.