Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker-init: handle linux init responsibilities #15

Merged
merged 1 commit into from
May 3, 2023

Conversation

lexton
Copy link
Contributor

@lexton lexton commented Apr 3, 2023

dockerd doesn't handle PID1 responsibilities well.

Upstream issue:
docker-library/docker#318

Blog description:
https://blog.phusion.nl/2015/01/20/docker-and-the-pid-1-zombie-reaping-problem/

Given that we aren't on the latest version of dind, and we don't use the native entry point wrapper, we should add this logic to ensure that process reaping occurs as expected.

Local testing:
https://gist.github.com/lexton/f7684b70ce7ca2f090490ded9ff1b9ad

dockerd doesn't handle PID1 responsibilities well,
this PR delegates these to docker-init to ensure
that all zombie child processes are reaped etc.
@mbialon mbialon self-requested a review April 4, 2023 10:16
@lexton
Copy link
Contributor Author

lexton commented Apr 24, 2023

Is someone able to help me with a merge on this PR plz?

Copy link
Member

@Yantrio Yantrio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved and I've tested locally 👍

Thanks @lexton for your contribution. Much appreciated!

@Yantrio Yantrio merged commit bbdf7ef into spacelift-io:main May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants