jetson-containers icon indicating copy to clipboard operation
jetson-containers copied to clipboard

I can't create a new file, the file system is reported as read-only

Open land007 opened this issue 4 years ago • 5 comments

Dockerfile FROM nvcr.io/nvidia/l4t-ml:r32.4.3-py3 Step 16/19 : RUN cd /usr/local/cuda/targets/aarch64-linux/lib && mkdir 123 ---> Running in d0f4ef0fa4c4 mkdir: cannot create directory '123': Read-only file system

land007 avatar Aug 18 '20 12:08 land007

/usr/local/cuda is mounted from the host device in read-only mode, so you can't write to it from within the containers.

For more info, please see here: https://github.com/NVIDIA/nvidia-docker/wiki/NVIDIA-Container-Runtime-on-Jetson#mount-plugins

dusty-nv avatar Aug 18 '20 15:08 dusty-nv

Currently I have the following version environment -library: * CUDA: 10.2.89 * cuDNN: 8.0.0.145 * TensorRT: 7.1.0.16 I wish to make a docker image of the following environment -library: * CUDA: 10.0 * cuDNN: 7.5 * TensorRT: 5.1.6 If docker depends on the environment of the host, it is impossible to complete such an image

land007 avatar Aug 18 '20 15:08 land007

It is currently not supported to use a different version of CUDA/ect than what comes with JetPack-L4T.

However you could try making your own base image and install the CUDA packages inside your container. What you should do is move/rename /etc/nvidia-container-runtime/host-files-for-container.d/cuda.csv on your host device first (and cudnn.csv, tensorrt.csv), so those CUDA files don't get mounted into your container.

dusty-nv avatar Aug 18 '20 16:08 dusty-nv

Thanks for your reply, it does not seem easy. The production of nvcr.io/nvidia/l4t-base does not seem to be in this project. I am not sure if the host cuda driver works for the low version cuda calls in Docker.

land007 avatar Aug 18 '20 16:08 land007

I finally understand what you mean. After repeated attempts, I achieved the downgrade of CUDA.link

land007 avatar Aug 26 '20 08:08 land007