This is why you should never add your user to the docker group. Just use `sudo docker` or put your docker commands in a script that can only be edited by root and execute the script via sudo with NOPASSWD.
Much better: replace Docker with https://podman.io/, which runs with user privileges, no root.