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

fix: use exec to replace pid 1 shell with process #52

Merged
merged 1 commit into from May 25, 2023

Conversation

chriswessels
Copy link
Member

As reported in #51, some containers have a shell as PID 1.

This PR uses exec to replace the shell with the invoked process as PID 1.

This doesn't completely solve #51 since PID 1 is expected to handle signals in a way that non-PID 1 processes are not. For that we should still try to roll dumb-init into all images.

@chriswessels chriswessels merged commit 5c46077 into main May 25, 2023
1 check passed
@chriswessels chriswessels deleted the chris/ensure-exec branch May 25, 2023 10:43
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.

None yet

2 participants