This question already has an answer here:
- How can I use docker without sudo? 3 answers
How can I have a certain command always run as root/with
sudo but without the password prompt (assuming the user is in the sudoers file)?
Specially, how can I have docker always run as root without having to use the
sudo command before it?