This question already has an answer here:

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?

marked as duplicate by Rinzwind, karel, Eric Carvalho, user535733, Zanna Jul 10 '18 at 14:04

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.