-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Every unit created by runc need daemon reload since systemd v230. #4568
Comments
Every unit created by runc need daemon reload since systemd v230. This breaks support for NVIDIA GPUs, see opencontainers#3708 (comment) Add a workaround for the below systemd issue. systemd/systemd#35710 Instead of filling the empty DeviceAllow array, a new array is created with allowed devices. Remove the comment about it, since it's misleading. Closes opencontainers#4568 Signed-off-by: Jian Wen <[email protected]>
So, does runc properly generates |
@kolyshkin No. The A runc hook was used to inject the devices to the cgroup(device.allow) behind the back of systemd. |
There is no need for any workarounds or hacks -- if you use runc >= 1.1.7 and systemd >= v240, it should work with the stock runc (see #3671 (comment)). This will also solve the issue of removing the access to nvidia devices upon daemon-reload, as systemd is now aware of all the devices. |
Description
Every unit created by runc need daemon reload since systemd v230.
Steps to reproduce the issue
Describe the results you received and expected
Actual:
Expected:
What version of runc are you using?
v1.2.0-109
Host OS information
No response
Host kernel information
No response
The text was updated successfully, but these errors were encountered: