Skip to Content
Menu
This question has been flagged
2 Replies
2172 Views

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
Discard
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
Discard
Related Posts Replies Views Activity
1
Mar 21
2220
0
Aug 24
736
2
Dec 20
19564
2
Nov 22
5930
1
Dec 23
2341