Docker init Systems

This is an old revision of the document!


Back  
 Next

Docker init Systems

There are a number of init systems used on docker containers, many are the defaults that ship with the standard Linux distributions, e.g. systemd which is particularly popular on the larger comprehensive distributions.

When creating my own imaged I have generally is the S6-RC init system, most if not all have been built on the latest Apline Linux as base image. Some examples:

I have also used supervisord system where it was simple to follow the formula from the image supplier to add functionality. Some examples:

There are other init systems out there that I have not looked into, including a number of legacy init systems that are no longer supported.

s6 supervision rc system

I decided to build this container image based upon Alpine Linux using the S6 init system. The Skarnet.org is the S6 authors web site and main repository. S6 seems to be one of the most performant small init systems available, however it is not very easy to use. I could really use a front-end to help with the management.

s6 Service Driectories

S6 Service directories

The s6-rc service directories are stored at /etc/s6-overlay/s6-rc.d/.

sub-directory Must Comment
├── named *1 Service
│   ├── dependencies.d * List of dependent services
│   │   ├── base built in base services
│   │   └── pre_start_script User pre start script (if required)
│   ├── producer-for *1 file required for logging
│   └
        named-log
*1 file content with name of logging service
│   ├── run * File containing the service run script
│   └
        #!/command/execlineb -P
        fdmove -c 2 1
        /usr/sbin/named -f -4 
*1 file content with name of logging service
│   ├── timeout-down
│   ├── timeout-up
│   └── type
├── named-log
│   ├── consumer-for
│   ├── dependencies.d
│   │   └── named-log-prepare
│   ├── pipeline-name
│   ├── run
│   └── type
├── named-log-prepare
│   ├── dependencies.d
│   │   ├── base
│   │   └── pre_start_script
│   ├── type
│   └── up
└── pre_start_script
├── dependencies.d
│   └── base
├── type
└── up

s6 commands

Basic S6 commands:

References

It seems that the authors source pages skarnet.org are often down or otherwise slow and reliable. An alternative mirror is [https://skarnet.github.io/|skarnet.github.io]]


Other Supervisor software discussions:

/app/www/public/data/attic/docker_notes/init.1722749139.txt.gz · Last modified: 2024-08-04 Sun wk31 13:25
CC Attribution-Share Alike 4.0 International Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International