I think you have to give permission to the user or group from the host. Thereās no way around that.
chmod u+rw -R /path/to/volume/on/host && chown 1000:1000 -R /path/to/volume/on/host
Can someone help with a docker question around the phoneixd docker image:
https://github.com/sethforprivacy/phoenixd-docker/issues/5
the container uses a less priviliged user, how to correctly mount a volume that the container can write to that data directory?
I think you have to give permission to the user or group from the host. Thereās no way around that.
chmod u+rw -R /path/to/volume/on/host && chown 1000:1000 -R /path/to/volume/on/host
ok, thanks. I could not believe there is no way around it.
so I always have to create the directory on the host, set permissions before running docker compose
Yep, if itās a Git repo you I think could create the folder once with the right permissions and add a hidden file, so itās always there ready after cloning.