on Mac OS: shinyproxy-config-example 02 (containerized shinyproxy)

Hello,
In example 2 of shinyproxy-config-examples

pertaining to running a containerized docker engine, what is the appropriate command for MacOS (which does not have the getent command).

sudo docker run -v /var/run/docker.sock:/var/run/docker.sock:ro --group-add $(getent group docker | cut -d: -f3) --net sp-example-net -p 8080:8080 shinyproxy-example

Hi

I don’t have access to a mac machine myself, so I cannot test the exact steps. The idea of the getent command is to find the group owning the docker socket. It should be possible to find this using e.g. https://apple.stackexchange.com/questions/108202/may-i-have-a-list-of-system-group-names-and-their-respective-gids

Next you should put this as the argument for --group-add.