chown /data volume in Dockerfiles#634
chown /data volume in Dockerfiles#634acalcutt merged 1 commit intomaptiler:masterfrom nbr23:docker-volume-permissions
Conversation
|
I'm not sure about this one, I always considered it a bit of a security feature of running in the docker that it could not write back unless it was running docker as the same 'node' user. The documentation has recommended downloading the mbtiles/config files first to avoid this issue when running docker as a user that is not 'node' While this would make it work without an error, I'm not sure node should always be able to write back to your data directory. Anyone else have any opinions on this? am I thinking about it wrong? |
|
Hi @acalcutt, HTH, |
|
I think this PR is safe. The created
For example, if an empty read-only directory is mounted at I believe this PR should be merged. |
Currently, if we run the container without mounting a volume, it fails with the following as /data is owned by root: