This question has been flagged

Using Ubuntu 20.04.1. Latest docker images for odoo and postgres.

I run postgres in a separate container.


This code run fine:

sudo docker run -v $HOME/docker_data/odoo/etc/odoo:/etc/odoo -p 8069:8069 --name odoo --link postgres:postgres -t odoo


The above only have -v pointing to the location of odoo.conf file. 


BUT, to save the product images uploaded, I believe I need to also map docker container /var/lib/odoo to the host. So now I have this:

sudo docker run -v $HOME/docker_data/odoo/etc/odoo:/etc/odoo -v $HOME/docker_data/odoo/var/lib/odoo:/var/lib/odoo -p 8069:8069 --name odoo --link postgres:postgres -t odoo


Docker will run, but will get stuck at:

odoo.service.server: HTTP service (werkzeug) running on xxxx:8069

Then, if I try to access the webpage, the docker log will show:

odoo.http: HTTP Configuring static files 

And it just stuck there forever. I have checked to make sure $HOME/docker_data/odoo/var/lib/odoo directory exists on the host machine.


Avatar
Discard