Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make GID/UID settable via parameter (again) #20

Open
threshold68 opened this issue Aug 7, 2024 · 3 comments
Open

Make GID/UID settable via parameter (again) #20

threshold68 opened this issue Aug 7, 2024 · 3 comments

Comments

@threshold68
Copy link

It seems that GID and UID of the vdirsyncer user were changeable via corresponding parameters e.g. in the docker-compose.yml file but this possibility was removed in version 2.4.1. Since version 2.4.1 GID and UID are fixed to 1000.

This creates files permission problems when using vdirsyncer with local filesystem type storage e.g. on Syology NAS where UID 1000 is not permitted.

Currently, I need to patch the UID and GID in the Dockerfile to the UID/GID of the local Synology user that uses the local filesystem type CALDAV storage.

This could be avoided, if the GID an UID were made settable via parameters in the docker-compose file as it presumably was the case before version 2.4.1. This would be my change request.

BR/Harald

@Bleala
Copy link
Owner

Bleala commented Aug 21, 2024

Hello @threshold68

I did this to drop the root privileges from the container completely, is it possible, that you use docker volumes instead?
With them you don't have the file permission problems.

Greetings

@threshold68
Copy link
Author

Hi @Bleala ,

as said above, II am using vdirsyncer to sync local files on a Synology NAS outside the part of the file system that is managed by docker and owned by a different user than the docker user.

Therefore, I don't see a way how this can by accomplished by using docker volumes.

BR

@Bleala
Copy link
Owner

Bleala commented Aug 30, 2024

Hi @threshold68

Could you try setting the user in the docker-compose.yaml?

Like this:

services:
  app:
    image: bleala/vdirsyncer:latest
    container_name: vdirsyncer
    restart: unless-stopped
    user: "your_UID:your_GID"

Set it to the UID/GID of your Synology DSM user, maybe this could work.

Greetings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants