Community: Framework mailing list archives

Re: Creating a docker image of odoo with some modules already installed

Ryan Cole
- 10/13/2016 04:32:45

Hi Larry,

I'm fairly sure that Docker literally just creates a copy of the filesystem - it *should* be behaving in the way you want it to. Perhaps the Odoo install script is re-running when you're deploying the image, and overriding all of your changes?



On 13/10/2016 9:02 PM, "Adrian Enns" <> wrote:


i have not that much time. In my Docker-Container i use an updatescript to update an addon without the Frontend:

python2 odoo-bin \

i am sure there are options to install a module. But the simplest solution would be to preinstall a database, copy all files (db,files,modules) or create two images of the containers.

kind regards,
Adrian Enns

Am 13.10.2016 2:47 vorm. schrieb "ivange larry" <>:

Hi all

I am Larry, a software engineering intern. I need to create a docker image of odoo with some modules preinstalled for our implementation. I am new to both docker and odoo and am looking for some guidance on moving forward. I am hoping someone in the community has already done something. 

What I have done is pull the official odoo from docker hub, run it and installed all the modules we'll need. And did some customization(change logo, and company name)

Saved the image to a tar file using the following docker command
 docker save -o <save image to path> <image name>

I saved both the postgres image and the odoo image. So in another machine I tried loading the images and I was expecting that it will still have all the configuration I did. That is, it will already have all those modules installed and also the company related customization. But after loading the image and running it, I had a fresh odoo instance. 

So how can I create and image with some preinstalled modules and custom configurations packaged in the image.

I. Larry Ndumbe

Software Engineering Student, University of Buea
OpenMRS Volunteer Developer,
Google Summer of Code 2016 Student,
Odoo Implementer

Post to:

Post to: