Access to Raspberry Cam v2 fails from docker container using L4T 32.4.2 (using nvarguscamerasrc)

Hi,

Thanks for you answer… Yes I’ve read this documentation, maybe I didn’t understand it well or I have something broken on my jetpack version.

Here is a minimal way to reproduce my issue:

Launch a docker container interactively

# Allow containers to communicate with Xorg
sudo xhost +si:localuser:root
sudo docker run --runtime nvidia --network host -it -e DISPLAY=$DISPLAY -v /tmp/.X11-unix/:/tmp/.X11-unix nvcr.io/nvidia/l4t-base:r32.3.1

Then try to launch the Raspberry pi cam from the docker container

gst-launch-1.0 -v nvarguscamerasrc ! nvoverlaysink -e

I get this error:

(Argus) Error FileOperationFailed: Connecting to nvargus-daemon failed: No such file or directory (in src/rpc/socket/client/SocketClientDispatch.cpp, function openSocketConnection(), line 201)
(Argus) Error FileOperationFailed: Cannot create camera provider (in src/rpc/socket/client/SocketClientDispatch.cpp, function createCameraProvider(), line 102)

Am I doing something wrong ??

Thanks