Why is --host=net needed for using CSI camera inside container

I am successfully using my CSI camera from within a docker container by running the container using the following line:

sudo docker run --net=host --runtime nvidia --rm --ipc=host -v /tmp/.X11-unix/:/tmp/.X11-unix/ -v /tmp/argus_socket:/tmp/argus_socket --cap-add SYS_PTRACE -e DISPLAY=$DISPLAY -it nvcr.io/nvidia/l4t-base:r32.4.3

as proposed at NVIDIA Container Runtime on Jetson · NVIDIA/nvidia-docker Wiki · GitHub.

My question is: Why is --net=host necessary? I would like to run the container using a custom network.


I don’t check with r32.4.3 but just confirm without problem to run CSI camera by below command.

sudo docker run --runtime nvidia --rm --ipc=host -v /tmp/.X11-unix/:/tmp/.X11-unix/ -v /tmp/argus_socket:/tmp/argus_socket --cap-add SYS_PTRACE -e DISPLAY=$DISPLAY -it nvcr.io/nvidia/l4t-base:r32.7.1 

You are right! I restarted my jetson nano, and it worked. I don’t know what went wrong.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.