filestash
filestash copied to clipboard
[bug] docker permission denied
my docker-compose.yml
Filestash needs to create/edit the file that exist in the state directory. In practice, this means you need to:
chown -R 1000:1000 ./state/
from the location of your docker-compose.yml
I'm closing as it seems to be solved. I've link this ticket from the faq so if someone google this, the answer should be easier to find. If you think we shouldn't close, feel free to comment back and I'll reopen
I'm running this with rootless podman-compose and I can't make this work by using 'chown -R 1000:1000 ./state/'. (Path is changed to my path.) Podman cp did already a copy with the same owner/user (1000:1000) as the user running podman-compose. In the container the state directory is owned by root:root. Others are filestash:filestash. Could everything be filestash: filestash? Or is the problem somewhere else and I don't understand it..?
Edit: Looks like it's root:root only when there is 'volumes: - ./filestash_data/state:/app/data/state' in the docker-compose.yml. Can anybody say why it is doing that? @mickael-kerjean
Edit2: Finally. Fixed issue. podman unshare chown 1000:1000 -R ./filestash_data/state Docker-compose.yml: volumes: - ./filestash_data/state:/app/data/state:Z