Volumes mount multiple directory reddit / selfhosted ---------------------------------------------------------------------- Nope-all · 2023-11-09 02:28 Hi all, I want to ask about docker volumes, is it possible to mount multiple directories in one volume? Example: \`\`\`docker run ..... -v nginx-data:/usr/share/nginx -v nginx- data:/etc/nginx nginx\`\`\` ---------------------------------------------------------------------- maximus459 · 2023-11-09 04:28 Yes. Buuut...... ​ If the same files in said folder are being written to that might cause issues.. I do have a few containers like that, but one folder is read-only... ---------------------------------------------------------------------- ElevenNotes · 2023-11-09 05:37 What is your real problem that you want to do that? ---------------------------------------------------------------------- SnooPets20 · 2023-11-09 06:09 It works, but all the files will be mixed together. This isn't really a problem, since if the container wants to access `file_a` in volume1, and `file_b` in volume2, then it will be able to do so no problem. The problem is when you have two different files named `file_a` in the two different mount points in the container. In that case, one file will get overwritten by the other. Just use separate volumes.