Your Guide to Nextcloud All-in-One on Windows 10 & 11!

Hey, there is a pretty major update in recent (?) versions of Docker Desktop for Win. It seems that, to access actual drives in the system, instead of /run/desktop/mnt/host/c and similar you simply use /mnt/c and similar.

Here is a thread about this topic: mounting windows drive using api is not working · Issue #5066 · docker/for-win · GitHub

Here is what one commenter there noted, for example:

in doker desktop 2.2.0.3 path is now more logical /mnt/{drive letter}/ still different and requires changes in thing like GitHub - bonigarcia/selenium-jupiter: JUnit 5 extension for Selenium WebDriver

So I couldn’t figure out why creating data and backup directories using /run/desktop/mnt/host/c/backup and * /run/desktop/mnt/host/c/ncdata* wasn’t working - giving all kinds of errors and also, nothing at all was appearing in the corresponding directories c://backup and c://ncdata.

Using /mnt/c/backup and /mnt/c/ncdata seems to work just fine.

Using directories like * /run/desktop/mnt/host/c/ncdata* still WORKED in some sense - but those are just ordinary directories under the Ubuntu file system and don’t relate in any way to the c:/ disk as you would expect.

There may be some variation here depending on exactly which version of Docker Desktop etc you are running.

But something to be aware of!