June-15th-2021, 11:24 AM
The question with "netFIELD Connect" gateway running our original netFIELD OS with Hilschers original SD card the answer is very very easy:
Since netFIELD Connect gateway is supporting 100% orginial Docker without any limits just using the flag "--privileged" is enough to map ALL devices from the host machine into the container automatically. This is a 1:1 relationship. This makes using devices on netFIELD Connect very very easy since there is no need to map discrete /DEV/... manually any more as with netPI.
So call the list command "ls /DEV/" on the host Linux and then call the list command in the container "ls /DEV/" and you will receive both times the very same result and you will see all devices mapped in the container. This is all you need to do.
Code:
docker run -d --privileged --network=host --restart=always -e SSHPORT=22 -p 22:22/tcp hilschernetpi/netpi-raspbian
Since netFIELD Connect gateway is supporting 100% orginial Docker without any limits just using the flag "--privileged" is enough to map ALL devices from the host machine into the container automatically. This is a 1:1 relationship. This makes using devices on netFIELD Connect very very easy since there is no need to map discrete /DEV/... manually any more as with netPI.
So call the list command "ls /DEV/" on the host Linux and then call the list command in the container "ls /DEV/" and you will receive both times the very same result and you will see all devices mapped in the container. This is all you need to do.
„You never fail until you stop trying.“, Albert Einstein (1879 - 1955)