Docker access denied on startup when mounting volu...
# help-with-umbraco
f
I first got this error (I use SQLite):
Copy code
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 14: 'unable to open database file'
I then read on stackoverflow that i should mount a volume, but I then get this error when i add the volume from my local data folder to the container data folder: /app/umbraco/Data:
Copy code
2025-02-01 02:06:49 [01:06:49 ERR] Unexpected exception attempting to obtain MainDom lock file handle /app/umbraco/Data/TEMP/MainDom_78900a17dd16e82bd2ba7db10a6d0183b0786ad0.lock, giving up
2025-02-01 02:06:49 System.UnauthorizedAccessException: Access to the path '/app/umbraco/Data' is denied.
2025-02-01 02:06:49  ---> System.IO.IOException: Permission denied
I'm quite new to this and have no idea 😅
a
What command did you use to mount the volume? Are you using docker or podman? What OS is your host on? (eg. Windows, Mac, Linux) Sometimes you have to explicitly declare the volume to be RW when you mount it or it'll be read-only by default. If you're using podman in rootless mode you also have to be aware of file permissions gotchas.
s
FYI: we're looking for some Docker/container feedback here, please add: https://github.com/umbraco/Umbraco-CMS/discussions/18468
10 Views