From 9c8298df051575e5d99b76e4e9bdc8928c7e341a Mon Sep 17 00:00:00 2001 From: Frank Date: Fri, 21 Aug 2026 19:38:08 -0700 Subject: [PATCH] dnsmasq: add foreground CMD to the image The image had no command, so the container exited immediately (0). dnsmasq also daemonizes by default; -k keeps it as PID 1. --- dankclaw/dnsmasq/Containerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dankclaw/dnsmasq/Containerfile b/dankclaw/dnsmasq/Containerfile index d73ea1b..dbf71e5 100644 --- a/dankclaw/dnsmasq/Containerfile +++ b/dankclaw/dnsmasq/Containerfile @@ -2,3 +2,5 @@ # Build on dankclaw: podman build -t localhost/dnsmasq:latest -f Containerfile . FROM alpine:3.20 RUN apk add --no-cache dnsmasq +# -k keeps dnsmasq in the foreground (PID 1) so the container stays up. +CMD ["/usr/sbin/dnsmasq", "-k", "-C", "/etc/dnsmasq.conf"]