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

[BUG] Unable to start server on kubernetes using shareProcessNamespace with another container #76

Closed
1 task done
rajan123456 opened this issue Aug 18, 2023 · 2 comments

Comments

@rajan123456
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I am trying to run the openssh-server as a sidecar in a kubernetes pod using the shareProcessNamespace feature of kubernetes to share pid namespace between 2 containers. On doing this, the openssh-server crashes with the below log line:

s6-overlay-suexec: fatal: can only run as pid 1

I would like to have the ability to run the openssh-server without it requiring to run as pid 1

Expected Behavior

No response

Steps To Reproduce

NA

Environment

- OS:
- How docker service was installed:

CPU architecture

x86-64

Docker creation

NA

Container logs

s6-overlay-suexec: fatal: can only run as pid 1
@rajan123456 rajan123456 changed the title [BUG] Unable to start server on kubernetes using shareProcessNamespace with another pod [BUG] Unable to start server on kubernetes using shareProcessNamespace with another container Aug 18, 2023
@github-actions
Copy link

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@Roxedus
Copy link
Member

Roxedus commented Aug 18, 2023

The init system we use in our containers set this requirement, this is not a bug, as it needs to be PID 1 to work properly.

@Roxedus Roxedus closed this as completed Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants