add docker group to user in docker file code example Example: add user to docker group sudo usermod -aG docker $USER #$USER is your username