I have a problem when I am installing odoo 10 by docker. I can't compose up docker.error
while creating mount source path.
People can help me!
Thanks!
ERROR: for dockercomposeodoo100_odoo10_1 Cannot start service odoo10: b"error while creating mount source path '/host_mnt/c/Users/hoang/Downloads/docker-compose-odoo-10.0/o_etc': mkdir /host_mnt/c/Users/hoang/Downloads: permission denied"
ERROR: for odoo10 Cannot start service odoo10: b"error while creating mount source path '/host_mnt/c/Users/hoang/Downloads/docker-compose-odoo-10.0/o_etc': mkdir /host_mnt/c/Users/hoang/Downloads: permission denied" ERROR: Encountered errors while bringing up the project.
It is shared drive issue, could be solved by following steps. My example are based on Docker on windows, and Symantec Endpoint Protection as firewall.
Mount to other directories
Please follow setup steps on Docker on windows or quickstart, when you need mount directories outside C:\Users on Win 10.
Turn off firewall
Type follow command in Windows 10 search window to turn off SEP
Re-enable firewall by
Docker provide sample check command under
Shared Drives
tabIf the command output is empty then there are set up issue, because C:\Users is no way be empty.
To reapply shared drives you can use either way
4. Check shared drive outside C:\Users For example, my directory is C:\Proj\GitHub then
If output is empty then it is a Windows authorization issue. The Administrator role may not enough to access the directory by setup in step 1. You need shared to user ID by
File Explorer
. Click the directory and show context menu by click right button. ChoiceGive access to
>Specific people
, then grant to user id defined in step 1.It might be this Windows specific behavior/bug https://stackoverflow.com/a/43767642/89769
(Guess from the path in the error message)