Skip to content

Instantly share code, notes, and snippets.

View darkrain42's full-sized avatar

Paul Aurich darkrain42

View GitHub Profile
@darkrain42
darkrain42 / Dockerfile
Created August 31, 2022 02:01
Workaround for running docker-pihole (w/ s6-overlay v3) on fly.io
FROM pihole/pihole:latest
# Run s6 in its own PID namespace so that it is PID 1, even when the
# environment already has its own init process (fly.io has a non-optional
# one), to avoid this error:
# s6-overlay-suexec: fatal: can only run as pid 1
#
# Un-ignore SIGINT and SIGTERM signals so that s6-init and all its child
# processes don't default to ignoring those signals. A bug in the "unshare"
# utility propagates ignoring these signals to the child process, which is