Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
2290 Vistas

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
Mejor respuesta

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

Hope it helps

Avatar
Descartar
Mejor respuesta

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
Publicaciones relacionadas Respuestas Vistas Actividad
1
mar 21
2291
0
ago 24
828
2
dic 20
19635
2
nov 22
6135
1
dic 23
2532