I have on my ubuntu instance a group of non-sudoers (“deploy” group). In order, to enable them to use docker I have to change the permission of “/var/run/docker.sock” file to
chgrp deploy /var/run/docker.sock and
chmod 770 /var/run/docker.sock.
Is this approach considered as security blunder, is there any other better approach?