sg

sg#

Run a command under a different group ID (like su for groups).

$ sg docker -c 'docker ps'