Alpine Linux with s6-svscan as init.
3.5K
Alpine Linux base image with s6 process supervision built in.
hexian000/alpine-s6linux/amd64, linux/arm64, linux/arm/v7| Tag | Base |
|---|---|
latest, 3.23 | Alpine 3.23 |
3.22 | Alpine 3.22 |
3.21 | Alpine 3.21 |
3.20 | Alpine 3.20 |
3.19 | Alpine 3.19 |
3.18 | Alpine 3.18 |
s6 — process supervision suitetzdata — timezone data/sbin/init entrypointThe /sbin/init entrypoint handles startup in this order:
/etc/rc.local is executable, it is run first.sh./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/alpine-s6:latest
COPY myapp /var/services/myapp
Or mount the services directory at runtime:
docker run -v /host/services:/var/services hexian000/alpine-s6
docker run --rm hexian000/alpine-s6 /your-script.sh
FROM hexian000/alpine-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/sh
exec /usr/bin/myapp --flag
tzdata is preinstalled. Set the timezone via the TZ environment variable:
docker run -e TZ=America/New_York hexian000/alpine-s6
Content type
Image
Digest
sha256:3d81afa91…
Size
4.2 MB
Last updated
5 months ago
docker pull hexian000/alpine-s6