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 "${@}"