コンテンツへスキップ
メニュー
この質問にフラグが付けられました
4126 ビュー

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.


アバター
破棄
関連投稿 返信 ビュー 活動
1
12月 20
11806
2
1月 25
3931
1
6月 21
3191
1
2月 24
1245
1
5月 22
7101