From 604c7a014c2d507c583371eaa2858de8b586cf23 Mon Sep 17 00:00:00 2001 From: pedro Date: Thu, 7 Mar 2024 17:35:34 +0100 Subject: [PATCH] docker ps as sudo --- status.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/status.sh b/status.sh index 9a59f61..32293bc 100755 --- a/status.sh +++ b/status.sh @@ -41,7 +41,10 @@ main() { done done 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 "${@}"