Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
4127 Lượt xem

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.


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 20
11806
2
thg 1 25
3931
1
thg 6 21
3191
1
thg 2 24
1245
1
thg 5 22
7101