@jason10 I found the solution for our needs:
I had not seen the UDEV=1
env one can set in the balena base images:
https://www.balena.io/docs/reference/base-images/base-images/#working-with-dynamically-plugged-devices
With that one set, as well as privileged: true
plugging and replugging works. The service in the docker-compose.yml looks like this:
cameracontroller:
image: balenalib/jetson-tx2-ubuntu:melodic
environment:
- UDEV=1
restart: never
privileged: true
devices:
- '/dev:/dev'
command: /bin/bash