About configs files

why can’t i see my existing file

xhost +
sudo docker run -it --rm --net=host --runtime nvidia -e DISPLAY=$DISPLAY -w /opt/nvidia/deepstream/deepstream-5.1 -v /tmp/.X11-unix/:/tmp/.X11-unix nvcr.io/nvidia/deepstream:5.1-21.02-samples


The file example.txt is from your host, not within docker, if you want to see within docker, you need to add option -v /host dir path you want to mount/:/docker dir path you want to mount/