Permission issue with Synology as shared network folder for Docker swarm

Currently reading
Permission issue with Synology as shared network folder for Docker swarm

2
1
NAS
DS720+
Operating system
  1. Linux
Hey there,

I've bought a DS720+ to use it as network storage for my Docker swarm running on Raspberry Pis (I do no run Docker on the Synology).
I've created a shared folder, gave a non-admin user read/write permissions to it, and mounted said folder under the login of said user to my Pis.

Most of my containers have no read/write problem with the mounted Synology drive. However, the official mariadb image for example fails at startup with
Code:
[ERROR] mariadbd: Can't create/write to file './ddl_recovery.log' (Errcode: 13 "Permission denied")
For me, it seems like it's an issue with the user the mariadb container is running.

Has anyone ever encountered such an issue or knows how to solve it?
 
Has anyone ever encountered such an issue or knows how to solve it?
It is most def a permission problem with the user running the container. Have you tried running your compose with the --user=UID:PID combination that matches a DSM account?
 
Upvote 0
Yeah, that did it. No idea why I didn't think of that. Thanks.

For anyone who's also using compose files for this, the syntax is like
YAML:
version: "3.7"

services:
  Database:
    image: mariadb
    user: "<your-user-id>"
 
Upvote 0

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.

Old thread notice: There have been no replies in this thread for quite some time. The last reply was on .
The content in this thread may no longer be relevant. It might be better to open a new thread instead.

Similar threads

oh, I didn't know that. I read somewhere that I had to have that on for it to work! If I don't use Upnp...
Replies
2
Views
1,027
  • Locked
Thread closed. Please don't go off-topic in threads. Play by the rules, please.
Replies
11
Views
3,058
  • Question
I might be being thick here - aren't you supposed to be able to use one of the recovery codes in place of...
Replies
2
Views
1,509
I had the same behaviour, and found that simply recreating the calendar resolved it. My issue may have...
Replies
12
Views
3,471
  • Solved
I was suspecting that Drive's versions were the problem as that is one of the few packages that you can...
Replies
6
Views
1,591
Replies
7
Views
2,890

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Back
Top