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

Infinite sleep without needing a TTY or side effects #167

Closed
wants to merge 1 commit into from

Conversation

optiz0r
Copy link

@optiz0r optiz0r commented Jun 14, 2021

Infinite sleep without needing a TTY or side effects

This commit changes the means by which the container keeps itself
alive from running a sh process, to an explicit infinite sleep.

Using a shell means the container does not continue to run after
poller startup if run in detached mode, since stdin is closed the
shell process immediately exits. When run in attached mode,
use of shell will interpret any stdin as commands to be run within
the container, which is potentially dangerous, and certainly unexpected.

Fixes #164

This commit changes the means by which the container keeps itself
alive from running a `sh` process, to an explicit infinite sleep.

Using a shell means the container does not continue to run after
poller startup if run in detached mode, since stdin is closed the
shell process immediately exits. When run in attached mode,
use of shell will interpret any stdin as commands to be run within
the container, which is potentially dangerous, and certainly unexpected.

Fixes NetApp#164
@cla-bot
Copy link

cla-bot bot commented Jun 14, 2021

Thank you for your interest in contributing to the Harvest project! We require contributors to sign our Corporate contributor license agreement (CCLA), and we don"t have the user(s) @optiz0r on file. In order for us to review and merge your code, please follow the instructions in step 6 of creating a pull request.
After signing the CCLA, you can ask us to recheck this PR by posting @cla-bot check as a comment to the PR.

@rahulguptajss
Copy link
Contributor

done as part of #234

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.

Docker container stops after pollers are started when run detached/without TTY
2 participants