pokle / centos-baseimage

A Docker baseimage, very much in the same vein as Phusion's excellent https://github.com/phusion/baseimage-docker, but for Centos
34 stars 12 forks source link

docker stop takes a while to stop the container #2

Open pokle opened 10 years ago

pokle commented 10 years ago

This is because runit doesn't respond to the TERM signal that docker sends the leading process. docker eventually times out, and sends a KILL that does the job.

jsierles commented 10 years ago

Do you think it's a good idea to import the Phusion my_init script that properly handles process #1?

https://github.com/phusion/baseimage-docker/blob/master/image/my_init

pokle commented 10 years ago

That's a good idea. Have a go at converting it to CentOS and send me a pull request if you can get it working :)