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
ID_* device properties not available when listing devices in a Docker container #225
Comments
if someone would be interested in a very simple implementation of the library described in the third question, here's my repo https://github.com/p4l1ly/python-udevadm-monitor |
OK have found the root of the problem... I'm listening to udev events, in the container I get only the kernel events. |
But list_devices has another problem when running in docker container. udevadm and pyudev.Monitor shows all the attributes, but list_devices shows the devices without ID_ attributes. |
OK, it's the same as with udevadm... udevadm monitor works in a docker container, udevadm info does not. See my answer to this post http://stackoverflow.com/questions/41753218/udevadm-does-not-show-all-attributes-inside-a-docker-container/41778750#41778750 |
Thanks for the info. I'm going to call this a libudev bug, at least provisionally. |
When I run
udevadm monitor --environment
in a docker container, I can see devices appearing and dissappearing when plugging and unplugging a USB device. With pyudev.Monitor.from_netlink(ctx).poll() I do not get anything. Am I doing something wrong? Or could it be some kind of bug in this library? Or does libudev not support working in such a complicated environment and I'd have to useudevadm
directly for this? Thank you.The text was updated successfully, but these errors were encountered: