Debian with s6-svscan as init.
4.4K
Debian Slim base image with s6 process supervision built in.
hexian000/debian-s6linux/amd64, linux/arm64, linux/arm/v7| Tag | Base |
|---|---|
latest, 13, trixie | Debian 13 (Trixie) |
12, bookworm | Debian 12 (Bookworm) |
11, bullseye | Debian 11 (Bullseye) |
s6 — process supervision suiteexecline — s6 companion scripting languagebusybox — Unix utilities (installed system-wide via busybox --install)/sbin/init entrypointThe /sbin/init entrypoint handles startup in this order:
/etc/rc.local is executable, it is run first.bash./var/services/ exists:
/run/service (bind-mount your services directory)/run/services6-svscan is exec'd over /run/service.Create a service directory with a run script:
myapp/
└── run ← executable shell script
FROM hexian000/debian-s6:latest
COPY myapp /var/services/myapp
Or mount the services directory at runtime:
docker run -v /host/services:/var/services hexian000/debian-s6
docker run --rm hexian000/debian-s6 /your-script.sh
FROM hexian000/debian-s6:latest
COPY rc.local /etc/rc.local
RUN chmod +x /etc/rc.local
COPY myapp /var/services/myapp
/var/services/
└── myservice/
├── run ← required: exec the long-running process
└── finish ← optional: cleanup on exit
Each run file must be an executable script that execs the service process (do not background it).
#!/bin/bash
exec /usr/bin/myapp --flag
LANG=C.UTF-8 is set by default, so UTF-8 text handling works out of the box without installing additional locale packages.
Content type
Image
Digest
sha256:1ab10a9d4…
Size
29.3 MB
Last updated
5 months ago
docker pull hexian000/debian-s6