janeczku / docker-dropbox

:whale: Dropbox in a Docker image. This works.
MIT License
150 stars 129 forks source link

Same credentials for multiple instances #31

Open bandtank opened 5 years ago

bandtank commented 5 years ago

Similar to other questions/issues, namely #22, is it possible to use the same credentials/link for multiple containers? I've tried mapping and sharing .dropbox using --volume, but it does not appear to work correctly. Sometimes the containers don't start correctly and sometimes they don't sync at all or only partially. If I link each container independently by leaving the .dropbox folder unmapped and, instead, only map the data, everything works fine.

On a related note, has anyone had trouble with multiple instances not starting correctly without delays or manual restarts? My main issue is file counts, which is why I am running multiple instances. My office file server has 4 million files and the Dropbox client turns into mush after syncing approximately 350k files. To get around that, I am running 10 docker instances all linked to the same account with different excluded folders, which works fine once everything is up and running. Unfortunately, they don't always start properly and I had to link each instance individually instead of relying on one set of credentials. Maybe I didn't do it correctly, but I haven't seen any information that says sharing credentials should work the way I'm describing.