Edit files in Odoo Docker Contenair

Guys,

How do you edit files on Odoo contenair ? which command line are you using on that Debian Contenair ?

Regards

@christophe.chris2007 Editing file within the container should be a temporary approach. Becuase when container gets recreated you will loose edits.

You can try to install nano or vim on the container if you still want to edit

Thanks, I needed to be in as root to do it. I am editing now, now how to keep these updates even after recreation? Is there a solution ?

There’re 2 option to address this.

  1. Compile your own docker image inclusive of the changes you have introduced.
  2. Create persistence docker volume mapped to your working directory to manage the source files
1 Like