it4tsch
(It4tsch)
1
Hello there,
I’m new in docker. A 24x7 Linux server (Ubuntu) is running docker and I’d like to access (read/write) a cifs share on my NAS using a docker volume.
Where can I find some documentation on how to achieve this?
Thanks a lot for your help
meyay
(Metin Y.)
2
Just out of curiousity: have you tried the forum search with “cifs volume mount”?
it4tsch
(It4tsch)
3
Now I did and this is the solution that seems best:
docker volume create
–driver local
–opt type=cifs
–opt device=//uxxxxx.your-server.de/backup
–opt o=addr=uxxxxx.your-server.de,username=uxxxxxxx,password=*****,file_mode=0777,dir_mode=0777
–name cif-volume
Notice the addr
option is required if using a hostname instead of an IP so docker can perform the hostname lookup.
1 Like