May-30th-2021, 06:06 PM
Well in general the Docker engine makes a snapshot of all the USB devices plugged in at the time a container is started and makes them then available in the container. But Docker engine never do this again during runtime of a containers. This means if you unplug a USB device it will never be mapped again into the container.
I described this behaviour in this thread a while ago: https://forum.hilscher.com/thread-439.html
Others are describring this problem too e.g. https://forums.balena.io/t/docker-contai...vices/4277
On an open OS like Raspbian you could write a script (rules) that detects a fresh plugged in USB on the Linux Host and trigger a restart the corresponding container. But this is not possible on netPI since you can't access the netPI OS cause of its security restrictions.
So if you need this feature you need to operate netPI with a standard Raspbian OS on your own SD card. Please keep the original SD card just for future use.
Thx
Armin
I described this behaviour in this thread a while ago: https://forum.hilscher.com/thread-439.html
Others are describring this problem too e.g. https://forums.balena.io/t/docker-contai...vices/4277
On an open OS like Raspbian you could write a script (rules) that detects a fresh plugged in USB on the Linux Host and trigger a restart the corresponding container. But this is not possible on netPI since you can't access the netPI OS cause of its security restrictions.
So if you need this feature you need to operate netPI with a standard Raspbian OS on your own SD card. Please keep the original SD card just for future use.
Thx
Armin
„You never fail until you stop trying.“, Albert Einstein (1879 - 1955)