'Docker containers can't write inside cifs share
I have a docker compose for a media server i'm building using multiple containers, i want these containers to be able to R/W a cifs share mounted on host, after trying multiple ways i can't seem get them to write. here's the mounted share : /etc/fstab
//192.168.X.X/Media /mnt/Media cifs cache=loose,credentials=/root/.smbcrd,vers=3.0 0 0
and here's one of the multiple containers docker compose :
emby:
image: linuxserver/emby
container_name: emby
environment:
- PUID=998
- PGID=100
- TZ=Europe/Paris
- UMASK_SET=022 #optional
volumes:
- /mnt/Media/Configs/Emby:/config
- /mnt/Media/Series:/data/series
- /mnt/Media/Films:/data/movies
ports:
- 8096:8096
- 8920:8920
restart: unless-stopped
I'm learning docker and i don't think mounting the cifs share inside every container is the solution,do i need to mount the share in volumes section of my docker compose ?,the share is a synology nas. can anyone help?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
