-
Notifications
You must be signed in to change notification settings - Fork 1.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
refactor: adjust bpfd container runtime detection #1686
refactor: adjust bpfd container runtime detection #1686
Conversation
I hope you are aware of the fact that this approach won't work if running from a container image not generated with Docker... The file being used to detect the container runtime in reality only identifies the tool used to generate the container image. If I use a Docker engine to run a container image generated with buildah, that file will be missing. Still my workload is running in a Docker container. What's even worse: if I use a container image generated with Docker, extract the rootfs and use it with |
@Silvanoc Yes, and I agree with all your points on #1592 (comment), would be better if docker applied the podman approach so detection wouldn't be so flaky. However, as long the changes doesn't require that much effort, we can apply the upstream workarounds so users doesn't encounter these errors.
That doesn't seem like an usual case at all, and if you intend to run kaniko here, then it wouldn't be much different than having to use |
After the latest version bump this change got reverted as the upstream mr did not got merged -> would it be possible to reapply it to release a new kaniko version @tejal29? |
Oh nice. Could you send a PR to add a |
Hey @imjasonh @priyawadhwa @dlorenc I have the same problem and looked at the code. The use of this package seams to be only for this one very simple use case. Most of the package functionality seems not being used and we get an unmaintained (12/2018 last release(v0.0.1)) 3rd party hell which could be a few lines to detect the residency in a container and implementing it in kaniko should be less trouble in long term. Best |
+1 to using what we need, and dropping a seemingly-unmaintained dependency. Thanks for looking into it! |
Fixes #1592
Description
Applies genuinetools/bpfd#19, which improves detection of container runtime based on mechanism used by systemd.
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
See the contribution guide for more details.
Reviewer Notes
Release Notes
Describe any changes here so maintainer can include it in the release notes, or delete this block.