How to mount windows share to docker volume? Hopefully can fix permission issue that way

Dear Community,
I’m new with docker and have some trouble to setup my home server caused in permission issue.

I wanted to setup gogs with external data storage (windows storage, with “Shared Drivers” option on docker).

So my idea was… if I create an docker volume and mount that share into it and using the volume for containers should fix that problem?

Maybe someone else already have had that problem - I’m thanksfull for any other solution.


Your external data storage will have a drive letter, so you first need to map it to a user in the “Shared Drives” panel. That user should have “Read” access to the folders you will mount to the container or even “Full Control” access if your container will create new files/folders in the mounted volume.