From 3705f0ca380398883239c4813080a6f245b13877 Mon Sep 17 00:00:00 2001 From: Tommy Beadle Date: Wed, 29 Nov 2023 15:28:55 -0500 Subject: [PATCH] Don't send healthcheck output to a file called '1'. Previously, the stdout and stderr of 'pgrep qemu' would be sent to a file called '1'. Instead, just send them both to stdout so that docker can log it. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 51ed817..ec1c4f4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -60,4 +60,4 @@ RUN (\ ENTRYPOINT ["/usr/bin/dumb-init", "--", "/usr/local/sbin/entrypoint.sh"] CMD ["echo", "Usage: COMMAND [ARG...]\nExample: guestfish --version"] -HEALTHCHECK --interval=5s --timeout=5s --start-period=20s CMD pgrep qemu &>1 || exit 1 +HEALTHCHECK --interval=5s --timeout=5s --start-period=20s CMD pgrep qemu 2>&1 || exit 1