In Docker ,How to Use Python3 to Connect GMSL Camera and SocketCAN

Dear Sir,

I used Docker to run tensorflow , and finished use OpenCV connect Webcam in python.
The SocketCAN also ready for Python3, but not in Docker.
Is there any solution for Px2 use Python3 to Connect GMSL Camera and SocketCAN in Docker container?

Hi,

to run SocketCAN in a container you need namespace support for the CAN subsystem which has been introduced in Linux 4.12:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/log/net/can?h=linux-4.12.y

And you would probably need the vxcan driver too:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit?h=linux-4.12.y&id=a8f820a380a2a06fc4fe1a54159067958f800929

You can try to apply the patches to the Linux 4.9 kernel running on the PX2.

There were not that much changes between 4.9 and 4.12 in the CAN subsystem - so give it a try :-)

Regards,
Oliver