"
And Docker is twice as slow as native, and consumes twice as many resources. Raspberry is not a supercomputer, and electricity is not superfluous.
"
I did a fair amount of investigation and have never seen any testing or studies that showed docker being twice as slow, nor consume twice as many resources as native on. I don't even see that with a virtual machine on the pi. Max penalty I saw was 13% for one type of IO, and most were within 5% of native. Do you have anything to substantiate your claim?
on to the thread, I've played with settings in docker and exposing the hardware is pretty straight forward.
If you want to open everything up the --privileged flag allows that..
'docker run -d --init --name signalk-server --privileged --restart=unless-stopped -p 3000:3000 -p 10110:10110 -v signalk_data:/home/node/.signalk signalk/signalk-server'
If you want to open up just specific devices, here is an example that exposes just a USB gps.
'docker run -d --init --name signalk-server --device=/dev/ttyACM0 --restart=unless-stopped -p 3000:3000 -p 10110:10110 -v signalk_data:/home/node/.signalk signalk/signalk-server'
I'll do a writeup and send it in. I also can do a relative performance test using influx which is the largest load in my configuration.