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

Hello, Odoo community,


I'm relatively new to Odoo and I recently deploy my odoo server to AWS using the Docker image. 

When I try to deploy a new addon to the server, I can't find the way. 

According to the offical docker page, I should execute the command 

$ docker run -v /path/to/addons:/mnt/extra-addons -p 8069:8069 --name odoo --link db:db -t odoo

But I get the message

docker: Error response from daemon: invalid mode: /mnt/extra-addons.

I also try to find the folder /mnt/extra-addons using filezilla, the sub folder "extra-addons" doesn't exist and I create one and put the unzipped addon to the folder. Yet, I still can't find the addon in my module list. 


If anyone has experience this before, would you help me how can I deploy the addon? 


Thanks for your help!

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,
Refer to the following blog
https://www.cybrosys.com/blog/how-to-deploy-odoo-15-using-docker

Hope it helps

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Does the path /path/to/addons​ exist, is it an absolute path, and do you have permission? What does $ ls -la /path/to/addons​ output? 

Alternatively, you could create docker volumes: 

$ docker volume create extra-addons​ and use this volume $ docker run -v extra-addons:/mnt/extra-addons -p 8069:8069 --name odoo --link db:db -t odoo​. 

The content of this volume can usually be found at /var/lib/docker/volumes/​ or run $ docker volume inspect extra-addons​ to find the mount point. If you run $ docker volume ls​ you will get a list of all volumes that Docker uses.

If you want to know more about the deployment of Odoo using Docker, perhaps my blog post can help as well:

Dock, Stack & Launch: Odoo deployment with Docker and Portainer

I hope this helps!

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 21
2575
0
ส.ค. 24
1220
2
ธ.ค. 20
20079
2
พ.ย. 22
6928
4
ก.ค. 25
434