An open API service indexing awesome lists of open source software.

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

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