Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

the init process in docker cause a lot of defunct processes #195

Closed
tom-shan opened this issue Jul 3, 2019 · 2 comments · Fixed by #196
Closed

the init process in docker cause a lot of defunct processes #195

tom-shan opened this issue Jul 3, 2019 · 2 comments · Fixed by #196

Comments

@tom-shan
Copy link
Member

tom-shan commented Jul 3, 2019

after start docker with this command:
docker run -it -p 3000:3000 -v "$(pwd):/home/project:cached" theiaide/theia:next
and refresh the page, there are many zombie processes in the process list.
For now the init process(PID is 0) will not wait for it's child processes, so these child processes will not be reaped by the init and remains.
image

@tom-shan
Copy link
Member Author

tom-shan commented Jul 3, 2019

According to https://github.com/krallin/tini, we can add a prefix of "/tini", "--" to the ENTRYPOINT in Dockerfile.

@marcdumais-work
Copy link
Member

Interesting, thanks @tom-shan for reporting this issue.

marcdumais-work pushed a commit that referenced this issue Jul 3, 2019
fix #195

Signed-off-by: tom-shan <swt0008411@163.com>
dwjbosman pushed a commit to dwjbosman/theia-apps that referenced this issue Jul 16, 2019
fix theia-ide#195

Signed-off-by: tom-shan <swt0008411@163.com>
Signed-off-by: Dinne Bosman <dwjbosman@yahoo.com>
dwjbosman pushed a commit to dwjbosman/theia-apps that referenced this issue Jul 24, 2019
fix theia-ide#195

Signed-off-by: tom-shan <swt0008411@163.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants