Skip to Content
Menú
This question has been flagged
2 Respostes
2176 Vistes

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!

Avatar
Descartar
Best Answer

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!

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de març 21
2220
0
d’ag. 24
739
2
de des. 20
19564
2
de nov. 22
5936
1
de des. 23
2349