Skip to content

win-t/docker_pid1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker_pid1

This program is PID 1 inside container (not only for docker), for all POSIX-compatible system, but I only tested it with Linux.

Why we need this kind of program ?

you can see the explanation here

Why I created a new one ?

Yes, there are other tools like tini, but that tool is too complex in my opinion. I just want to follow UNIX Philosophy Do One Thing and Do It Well

How to use

Well, it's very simple, just run

docker_pid1 [the_program] [arg1] [arg2] [... argN]

TODO

  • create automated testing script