From 536859f64225ce192566e07d0bac40c3a132dbd7 Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Fri, 12 Jan 2024 19:43:26 +0100 Subject: [PATCH] fix: docker-health.service --- modules/docker.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ''; }; }