Replying to Avatar bumi

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

Reply to this note

Please Login to reply.

Discussion

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.