https://github.com/dnephin/alpine-s6
Minimal example of using s6 in a docker container to handle signals as pid1
https://github.com/dnephin/alpine-s6
Last synced: 24 days ago
JSON representation
Minimal example of using s6 in a docker container to handle signals as pid1
- Host: GitHub
- URL: https://github.com/dnephin/alpine-s6
- Owner: dnephin
- Created: 2015-07-24T22:28:40.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-08-14T15:57:48.000Z (over 9 years ago)
- Last Synced: 2025-03-25T14:38:10.494Z (about 1 month ago)
- Language: Shell
- Size: 125 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
alpine and s6 in a container
============================s6 is used as an init system to handle signals so that `docker stop` and
`kill -s TERM` properly shutdown the container. It is not used to run multiple
processes.* ENV is propagated correctly
* stdout/stderr is propagated correctly```
docker build -t signals .
docker run --name signals signals
docker stop signals
```To use this as a template for building an image, edit `s6/service/run` to call
the command.Related
-------* https://github.com/Yelp/dumb-init