Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Do not run Erlang VM as PID 1 #108

Closed
sirn opened this issue Mar 10, 2018 · 2 comments
Closed

Do not run Erlang VM as PID 1 #108

sirn opened this issue Mar 10, 2018 · 2 comments
Assignees
Labels
kind/enhancement 🚀 New feature or request

Comments

@sirn
Copy link
Contributor

sirn commented Mar 10, 2018

Subject of the issue

Running non-Init process as PID 1 is a Bad Idea ™.

Your environment

Docker image generated from Dockerfile

Steps to reproduce

  1. Build docker image (docker build)
  2. Run it.

Expected behavior

Lightweight init being ran as PID 1, such as Tini, or S6.

Actual behavior

Erlang VM is running as PID 1.

@sirn sirn added the kind/enhancement 🚀 New feature or request label Mar 10, 2018
@sirn sirn self-assigned this Mar 10, 2018
@unnawut
Copy link
Contributor

unnawut commented Mar 12, 2018

Noting down for my own understanding from your ref link:

Suppose that your container contains a web server that runs a CGI script that's written in bash. The CGI script calls grep. Then the web server decides that the CGI script is taking too long and kills the script, but grep is not affected and keeps running. When grep finishes, it becomes a zombie and is adopted by the PID 1 (the web server). The web server doesn't know about grep, so it doesn't reap it, and the grep zombie stays in the system.

@sirn
Copy link
Contributor Author

sirn commented Mar 20, 2018

Update: we're going with S6.

@sirn sirn closed this as completed in b241097 Mar 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/enhancement 🚀 New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants