對於docker 來說init 進程的管理很重要,以下是幾個不錯的選擇
tini
參考資料https://github.com/krallin/tini
dumb-init
參考資料https://github.com/Yelp/dumb-init
docker 自己的init
啟動的時候添加 --init
supervisord
這個比較老牌,可以使用python版本的以及golang 版本的,個人比較推薦使用golang 版本的https://github.com/ochinchina/supervisord
containerpilot
這個本身是一個很不錯的基於consul 的軟件運行方案,但是也可以用來管理init進程,參考資料 https://github.com/joyent/containerpilot
說明
以上是一些整理, 肯定還會有其他,上邊的只是一個參考