mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-12-23 02:36:05 +01:00
fix: docker-health.service
This commit is contained in:
parent
75ca63f344
commit
536859f642
@ -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
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user