There is a file system problem with the new base image provided by Nvidia which is “l4t-base”. When I start a container with the flow as shown below:
xhost +local:docker XSOCK=/tmp/.X11-unix XAUTH=/tmp/.docker.xauth xauth nlist $DISPLAY | sed -e 's/^..../ffff/' | xauth -f $XAUTH nmerge -
and then Docker command:
docker run --runtime nvidia -it --device=/dev/video0 -e DISPLAY=$DISPLAY -v $XSOCK:$XSOCK -v $XAUTH:$XAUTH -e XAUTHORITY=$XAUTH nvcr.io/nvidia/l4t-base:r32.2
The problem is that when I try to edit the “/usr/local/cuda/include/cuda_gl_interop.h” file to build opencv, it throws “cp: cannot create regular file ‘/usr/local/cuda/include/cuda_gl_interop.h.bak’: Read-only file system” or “File ‘/usr/local/cuda/include/cuda_gl_interop.h’ is unwritable”.
I can’t change the permissions of this file within the container either. Is there any workaround for this problem?