Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
20118 มุมมอง

I'm using MacOS Catalina 10.15.6, Docker version 19.03.12.


Using the follow command to get the Odoo 13 version(which is the latest):

Docker pull odoo


When the container starts, it shows  the following command:


2020-09-02 03:56:29,777 1 INFO ? odoo: Odoo version 13.0-20200826

2020-09-02 03:56:29,777 1 INFO ? odoo: Using configuration file at /etc/odoo/odoo.conf

2020-09-02 03:56:29,777 1 INFO ? odoo: addons paths: ['/usr/lib/python3/dist-packages/odoo/addons', '/var/lib/odoo/addons/13.0', '/mnt/extra-addons']


Which means the path "/mnt/extra-addons" is the addons path, I can put the thirtd-part modules or my own modules here. 


[I make it clear here, I just put the module INSIDE the docker, and DONT want to mount the MAC filesystem onto the docker. ]



And I put the module(which is the module from apps.odoo.com, must be useful) into the "/mnt/extra-addons" folder, so the modules should be found in Odoo.


But the question is: I put several modules in that folder, and cannot find the modules, so cannot install it.


How could I install the third-part module successfully?


Thank you for reply.    

อวตาร
ละทิ้ง

Did you restart odoo within container and update list + update in odoo?

If so, check if /mnt/extra-addons is actually mounted and not aliased.

Or else, just change the docker image file, adding new path, or modify odoo.conf

How did you put your modules into /mnt/extra-addons? Do you use the MAC path? Then you can restart your container afterwards and you should see the modules after updating the apps in the UI App module.

คำตอบที่ดีที่สุด

Just using '-v' option when you run the docker container.  

   e.g.  -v $(pwd)/addon-path-on-host:/mnt/extra-addons

see here for more: https://docs.docker.com/storage/volumes/

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

@Cayprol 

I'm not restart odoo within my container... ... How's the command to restart odoo inside container? I only know the command outside the container and have restarted the container, it doesn't works.


Could I just use the /mnt/extra-addons folder, not mount a MAC folder to this path? I mean just copy the app into the "/mnt/extra-addons", could this work?



@ti-sq 

Just login the container, and put the modules into /mnt/extra-addons, will it work?

I find now the /mnt/extra-addons will be erased after some hours, this folder cannot put file directly in?




Make a new docker image file perhaps will work, I'll try that.

Thank you very much.

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ส.ค. 24
1237
2
ก.ย. 23
2775
2
พ.ย. 22
6989
4
ก.ค. 25
475
1
ธ.ค. 23
3275