I am facing the same problem, wanted to connect my camera to my docker image.
sudo docker run –device /dev/video0:/dev/video0 -p 9000:9000 -p 8000:8000 -a stdin -it project_image /bin/bash (this will interface camera (device) with my docker image in ubunutu distribution)
Needed the information about the simillar implementaion in MacOS, guess need to change the bold part according to mac.
The device driver or incase of ubuntu there a library which we need to install which will provide the location where the data is being stored ex v4l2–ctl --list-devices, is there anything similar in MAC OS ??