docker ps as sudo

This commit is contained in:
pedro 2024-03-07 17:35:34 +01:00
parent 4858b7c646
commit 604c7a014c
1 changed files with 4 additions and 1 deletions

View File

@ -41,7 +41,10 @@ main() {
done done
done done
printf '\n\n$ docker ps\n\n' printf '\n\n$ docker ps\n\n'
docker ps # add on `/etc/sudoers.d/allow_dockerps` the following content:
# #https://serverfault.com/questions/184072/how-can-i-allow-all-users-to-run-a-given-command-via-sudo
# ALL ALL=NOPASSWD: /usr/bin/docker ps
sudo docker ps
} }
main "${@}" main "${@}"