Hi,
I’m trying to get UDEV events to reach my container running on a BalenaFin.
I’m testing with a simple USB thumb drive and an an ATR210, manufactured by AccessIS: ATR210 - TripTick® Barcode & NFC Reader
I made a minimal working example indicated below. I think I followed all recommended practiced as documented:
docker-compose file
version: '2.1'
services:
someservice:
build:
context: ./
dockerfile: Dockerfile
privileged: true
environment:
- UDEV=on
Dockerfile
FROM balenalib/generic-armv7ahf-dotnet:3.1-buster-20210201
WORKDIR /app
CMD sleep infinity
Results:
I ran udevadm monitor
both on the host and on the service. Then I first removed and then inserted the device.
udevadm_monitor_container.log (9.5 KB) udevadm_monitor_host.log (18.9 KB)
As you can see, I only see the UDEV events on the host and not on the service.
I noticed that the device does work perfectly fine in the service when I have it inserted and I restart the service. It’s just removing and inserting whilst the service is running that doesn’t work and I think it has to do with the UDEV events not showing up.
Other things I tried:
I can see that the udev service is running so all should be ok?
root@8de138db034b:/app# service udev status
[ ok ] systemd-udevd is running.
This seems similar to this topic: Balenadash keyboard not responding
If I can provide more info, please let me know.
Thanks for your time!