All Projects → dnephin → alpine-s6

dnephin / alpine-s6

Licence: other
Minimal example of using s6 in a docker container to handle signals as pid1

Programming Languages

shell
77523 projects

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].