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？
to run SocketCAN in a container you need namespace support for the CAN subsystem which has been introduced in Linux 4.12:
And you would probably need the vxcan driver too:
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 :-)