-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
K8S: pid is not 1, automatic detection of docker failed, inotify detection is not automatically enabled. #2824
Comments
When automatic detection is not working, it is possible to manually specify it as "on". Please refer to the comments for details.
As for the issue of PID not being 1, it needs to be investigated. It is possible that some automatic detection functions for Docker may not work properly, making it less convenient to use. Since it is a non-blocking issue and not very common, if anyone encounters it, please feel free to submit a patch.
|
Found that Tencent Cloud's K8s (TKE) is not using PID 1. Reference: https://github.com/ossrs/srs-tke-template Added a new configuration item that can force the use of Docker, regardless of whether it is successfully detected or not.
This way, at least when the detection fails, it can be bypassed.
|
There is no good way to solve this problem.
|
Description'
Please ensure that the markdown structure is maintained.
4.0release
'Please ensure that the markdown structure is maintained.
Please ensure that the markdown structure is maintained.
Please ensure that the markdown structure is maintained.
Able to update:
Please ensure that the markdown structure is maintained.
Unable to update.
Please ensure that the markdown structure is maintained.
Replay
Please ensure that the markdown structure is maintained.
1. You can start directly on ACK
Please ensure that the markdown structure is maintained.
Expected behavior (Expect)
Please ensure that the markdown structure is maintained.
srs_detect_docker works well.
Please ensure that the markdown structure is maintained.
Analysis:
Please ensure that the markdown structure is maintained.
I don't know the reason, but it caused the "ps" in the container to not use 1.
Recently, we have been using containerd instead of Docker. I'm not sure if this is related to that.
That code:
err = fr.open("/proc/1/cgroup")
seems to be incorrect, right?The phrase "enable auto reload for docker" is not printed in the log. There might be an issue with this sentence.
However, forcing
inotify_auto_reload on;
seems to directly detect configmap updates.Updated log:
#1635
TRANS_BY_GPT3
The text was updated successfully, but these errors were encountered: