Docker version: no user & group identifiers?

Coming from the LinuxServer.io Docker image, I’m wondering why the official container doesn’t seem to use the usual user and group identifier parameters.

The LinuxServer.io documentation reads:

When using volumes (-v flags), permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user PUID and group PGID .

Can I just manually add the user and group identifiers and are they going to work with the official docker image as well?

This is due to the improved way that LinuxServer handles users in their setups, where you run as less privileged users. Because of that, you may want to create a specific backup user/group and use that from within the image.

The Duplicati image does not have that option because it runs as root, and thus has full access to the mounted volume, regardless of the actual owner.

No, not in the current version, but I think you are right this should be possible.

I have written up a PR that adds UID/GID support to the Duplicati Docker images.

I’ve noticed that the pull request from August which has added support for UID/GID. Unfortunately, I can’t seem to find the README file mentioned in the pull request with details on this new implementation.

Can I just add “UID” and “GID” as environment values to the compose file?

That is because the UID/GID is not in the current stable release (meaning the :latest tag in Docker).

You can find the description here:

You can get the beta with:

docker pull duplicati/duplicati:beta
1 Like