[DeepStream5.0] How to mount local directory to NGC docker container

**• Hardware Platform (Jetson / GPU) Jetson
**• DeepStream Version 5.0
**• JetPack Version (valid for Jetson only) 4.4
**• TensorRT Version 7.1.3
**• NVIDIA GPU Driver Version (valid for GPU only) NA
**• Issue Type( questions, new requirements, bugs) question

Hi
I’m trying to run the following command to mount my local directory (/opt/nvidia/deepstream/deepstream-5.0) to run the docker container by following the instrustions provided from this page DeepStream-l4t | NVIDIA NGC

sudo docker run -it --rm --net=host --runtime nvidia -e DISPLAY=$DISPLAY -w /opt/nvidia/deepstream/deepstream-5.0 -v /tmp/.X11-unix/:/tmp/.X11-unix nvcr.io/nvidia/deepstream-l4t:5.0.1-20.09-samples --volume /opt/nvidia/deepstream/deepstream-5.0:/opt/nvidia/deepstream/deepstream-5.0 nvcr.io/nvidia/deepstream-l4t:5.0.1-20.09-samples

But I got an error like this
docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"-v\": executable file not found in $PATH": unknown.

I tired to double checked the local absolute path and it’s really over there
ls /opt/nvidia/deepstream/deepstream-5.0 -l

Does anyone know how to solve this problem? Thanks in advance.

try

sudo docker run -it --rm --net=host --runtime nvidia -e DISPLAY=$DISPLAY -w /opt/nvidia/deepstream/deepstream-5.0 -v /tmp/.X11-unix/:/tmp/.X11-unix --volume /opt/nvidia/deepstream/deepstream-5.0:/opt/nvidia/deepstream/deepstream-5.0 nvcr.io/nvidia/deepstream-l4t:5.0.1-20.09-samples

oops, I got it, thanks. It’s working now.

BTW, my intension is to see all the files that located in the NGC container under “/opt/nvidia/deepstream/deepstream-5.0” in my local directory “/opt/nvidia/deepstream/deepstream-5.0”,
so that when I changed the config files in the container, I could still retain the modified files in my local directory even the container is closed.

But I see 0 files after I successfully run the docker command, is it because my local directory is empty?