-
Notifications
You must be signed in to change notification settings - Fork 606
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
Cannot pass folder to --device
#2985
Comments
@AkihiroSuda this one is hurting me. I will gladly author a patch, but I need some pointer as I am not quite sure where to look, so, if you can nudge me in the right direction... |
Ok... so... Moby is doing this: Obviously /dev/snd is a folder, so, it enumerates devices in there. This is called from https://github.com/moby/moby/blob/cd08d377c5e0348984d1f46d196337d895ec47ad/daemon/oci_linux.go#L888 On the other hand, it seems to me nerdctl is doing this: nerdctl/pkg/cmd/container/run_cgroup_linux.go Line 201 in 8eeef86
Which does not handle things the same way. Question is: is the right approach to implement something similar here? |
Yes, nerdctl should follow Docker's approach whenever it is possible |
Ok. |
--device=/dev/snd
--device
Fix: allow directories for --device and in-container path (fix #2985)
Description
nerdctl does not allow passing
/dev/snd
as a device - unlike docker.I assume this issue should be fixed in nerdctl, but I would have to look into moby and figure out what they are doing.
Steps to reproduce the issue
Describe the results you received and expected
On the same node, against the same containerd.
What version of nerdctl are you using?
1.7.6
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
Debian GNU/Linux 12
Raspberry Pi 3 Model B Rev 1.2
Note: the containerd I am testing against is the one shipped by docker (
containerd containerd.io 1.6.31 e377cd56a71523140ca6ae87e30244719194a521
).The text was updated successfully, but these errors were encountered: