-
-
Notifications
You must be signed in to change notification settings - Fork 149
Description
Summary
When using an NFS-mounted volume as the backup destination, the container consistently fails with permission denied errors when attempting to write backups, despite correctly setting the UID and GID of the NFS-permitted user via environment variables and the user directive in docker-compose.yml.
Steps to reproduce
-
Mount an NFS share on the Docker host at /mnt/data
-
Ensure that the NFS share is owned by the userbck user, who has read and write permissions.
-
Configure the docker-db-backup container with:
-
Environment variables USER_DBBACKUP and GROUP_DBBACKUP matching the UID and GID of userbck
-
A volume mapping:
volumes:
- /mnt/data:/backup -
Start the container and trigger a backup.
-
What is the expected correct behavior?
The container should be able to write backup files to the /backup directory (which is the NFS share mounted on the host) without permission errors.
Environment
Image version / tag: tiredofit/db-backup:latest
Host OS: Ubuntu 20.04