docker without password prompting
Just a little snippet. This should be pretty obvious to those familiar with
sudo functions, but it’s easy to run docker commands
sudo without being prompted for your password by configuring
not ask for it.
Note that the normal warnings and red flags apply here.
If you install the above as
/etc/sudoers.d/docker, then the user
(line 1) and any user in the
docker group (line 2) will not be asked for a
password when running “sudo docker …”.
Again, the normal warnings and red flags apply here.