-
Notifications
You must be signed in to change notification settings - Fork 331
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
duplicated devices in mknod when run with --privileged #2433
Comments
Hey, thanks for the bug report! |
I run with The only thing I've changed with docker is {
"default-runtime" : "youki",
"runtimes": {
"youki" : {"path": "youki/binary/path", "runtimeArgs" : ["--debug", "--systemd-log"]}
}
} I use youki debug build |
ok, thanks, the fix seems apparently simple, to filter out extra devices, so will try to get this fixed soon 👍 |
Hey, this should get fixed in #2438, but keeping this open for self-note to add unit/e2e tests for testing this, as those are not added in the PR. |
in
prepare_rootfs
when run with docker --privileged, since all host devices can be accessed in /dev, this causes some duplicated devices in
default_devices()
andlinux.devices()
which are then chained together.On my machine, I got
failed to mknod device LinuxDevice { path: "/dev/full", typ: C, major: 1, minor: 7, file_mode: Some(438), uid: Some(0), gid: Some(0) } with err Nix(EEXIST)
The text was updated successfully, but these errors were encountered: