Question Mapping Windows Shared Folder to Syno Docker Container?

Currently reading
Question Mapping Windows Shared Folder to Syno Docker Container?

DS418play, DS213j, DS3621+, DSM 7.0.4-11091
I'm running Duplicati in Docker to backup my NAS. Duplicati has the option to restore to the source location or another. I want to restore to a Windows PC on the same LAN as my NAS would work.

In the Docker GUI the Volume tab only allows access to the NAS. So I opened a terminal window to mount my Windows shared folder "bkup" (which would be the restore destination), but it is alluding me.

For example sake ...
PC Name: mypc
Shared Folder: bkup (on the PC's "D" partition)

I found a reference to do this...
$docker run -v \\mypc\bkup\src:/mnt/mypc mypc/duplicati_bkup

$docker run -v \\mypc\bkup\src:/mnt/mypc mypc/duplicati_bkup

But this is useless in bash terminal, not a $docker command line ... so I am completely lost. In other web searches, I've read this is not possible to do (but those posts are 4 years old).

Running a container in privliged mode and beeing lucky that cifs is installed in the container is not realy docker-esque... Thus, the way you tried will most likely not succeed... A docker volume needs to be declared to a mount remote share, which needs to be used with your container.

The solution requires SSH access to the DS :
1. Connect to your DS via ssh.
2. Become root to execute docker commands -> `sudo -i`,
3. Create your volume:
`docker volume create \
--driver local \
--opt type=cifs \
--opt o=addr=mypc,rw \
--opt device=//mypc/bkup/src \
--opt o=uid=0,username={username},password={password},nounix,file_mode=0770,dir_mode=0770 \

I am not sure if this works with hostnames as well, maybee you will need to replace "mypc" with the ip. my-volume can be a name of your choosing.

4. Start your container: `docker run -v my-volume:/mnt/mypc mypc/duplicati_bkup`
DS418play, DS213j, DS3621+, DSM 7.0.4-11091
Thank you. I'll give that a go.

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to! is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Similar threads

Similar threads