docker map directory permission error
forzenheart opened this issue · 2 comments
forzenheart commented
when i run with:
sudo docker run -v /home/ubuntu/odoo/data/:/var/lib/odoo
get error like this:
path = odoo.tools.config.session_dir
File "/usr/lib/python3/dist-packages/odoo/tools/config.py", line 723, in session_dir
os.makedirs(d, 0o700)
File "/usr/lib/python3.10/os.py", line 225, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/var/lib/odoo/sessions' - - -