docker run as a root user code example Example: make docker sudo less $ sudo groupadd docker $ sudo usermod -aG docker $USER $ newgrp docker