How to edit a read only file system inside docker container

Hi I have a l4t tensorflow image for docker installed on my jetson nano.I want to add a line in the node_manipulation.py which is inside the graphsurgeon folder. The problem is that it shows that it is a read only file system inside the container and hence cannot be edited. Is there anyway it can edited.

Hi,

You can mount the folder into the docker (-v [host/folder]:[docker/folder]) to allow accessing.
For example:

$ sudo docker run -it --rm --runtime nvidia --network host -v /home/nvidia/myfolder:/home/nvidia/myfolder nvcr.io/nvidia/l4t-tensorflow:r32.4.4-tf1.15-py3

Thanks.

sorry if you could not understand my point.There is a file inside usr/lib/python3.6/dist-packages/graphsurgeon/node_manipulation.py which i have to edit.This is present inside the docker container.I want to edit the node_manipulation.py file which is present inside the docker container but could not do so because it shows cannot edit file due to being a read only file system.

Hi,

Please noted the file is mounted from the host directly.
So you can modify it from the outside of the container.

Thanks.