diff --git a/modules/docker.nix b/modules/docker.nix index 8d7e470..969ecab 100644 --- a/modules/docker.nix +++ b/modules/docker.nix @@ -2,7 +2,7 @@ { # https://nixos.wiki/wiki/Docker#Installation - # TODO: rootless Docker. https://nixos.wiki/wiki/Docker#Rootless_docker + # TODO: rootless Docker equivalent with root privileges? https://nixos.wiki/wiki/Docker#Rootless_docker # TODO: run as systemd services. https://nixos.wiki/wiki/Docker#docker_containers_as_systemd_services virtualisation = { @@ -100,7 +100,7 @@ # Lastly, we redirect stdout to stderr with `1>&2` so that unhealthy containers are written to stderr. script = '' set -eu -o pipefail - ! sudo docker ps -f health=unhealthy | grep -v 'CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES' 1>&2 + ! docker ps -f health=unhealthy | grep -v 'CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES' 1>&2 ''; }; }