chef-cookbooks / runit

Development repository for the Chef Runit Cookbook
https://supermarket.chef.io/cookbooks/runit
Apache License 2.0
106 stars 197 forks source link

runsvdir-start doesn't start inside docker without init #163

Closed jsirex closed 8 years ago

jsirex commented 8 years ago

In docker container runsvdir-start doesn't start (at least for debian).

The root cause of issue is init system inside container.

Package runit relays on /etc/inittab with:

#-- runit begin
SV:123456:respawn:/usr/sbin/runsvdir-start
#-- runit end

Then it send HUP signal to process with pid 1. Under test-kitchen pid 1 is sshd. So there are no way to start runit using only package.

xmik commented 8 years ago

If you want to use runit in docker, it seems more correct to use phusion/baseimage-docker as base image.

jsirex commented 8 years ago

@xmik Looks interesting. I will investigate this container. Thanks.

jsirex commented 8 years ago

@xmik This is an ubunutu image. I need debian. But I think it should work for any debian container.