when executing the command - docker exec odoo scaffold /mnt/extra-addons >>>PermissionError: [Errno 13] Permission denied : '/mnt/extra-addons/device' I've already tried -sudo chmod 777 /mnt

it was supposed to be a project from scratch

1

There are 1 best solutions below

0
Jkrox On

It works with root, like this:

docker exec -it --user root --name <your_container_name> /usr/bin/odoo scaffold whatever /mnt/extra-addons

I took this solution from here.