From 822e4c41feaeb0618e20ce90f71bda7119231c67 Mon Sep 17 00:00:00 2001 From: "Hongli Lai (Phusion)" Date: Tue, 20 Jan 2015 13:25:53 +0100 Subject: [PATCH] Link to PID 1 article, remove SSH host key generation command --- index.html | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index e3c44fb..bd4c458 100644 --- a/index.html +++ b/index.html @@ -162,6 +162,8 @@ CMD ["/my_app/start.sh"]
A correct init process
+

Main article: Docker and the PID 1 zombie reaping problem

+

Here's how the Unix process model works. When a system is started, the first process in the system is called the init process, with PID 1. The system halts when this processs halts. If you call CMD ["/my_app/start.sh"] in your Dockerfile, then start.sh is your init process.

But the init process has an extra responsibility. It inherits all orphaned child processes. It is expected that the init process reaps them.

@@ -277,11 +279,6 @@ FROM phusion/baseimage:<VERSION> # Set correct environment variables. ENV HOME /root -# Regenerate SSH host keys. baseimage-docker does not contain any, so you -# have to do that yourself. You may also comment out this instruction; the -# init system will auto-generate one during boot. -RUN /etc/my_init.d/00_regen_ssh_host_keys.sh - # Use baseimage-docker's init system. CMD ["/sbin/my_init"]