filestash icon indicating copy to clipboard operation
filestash copied to clipboard

[bug] docker permission denied

Open itorz7 opened this issue 2 years ago • 1 comments

image image

my docker-compose.yml image

itorz7 avatar Jun 23 '22 09:06 itorz7

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

mickael-kerjean avatar Jun 29 '22 13:06 mickael-kerjean

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

mickael-kerjean avatar Sep 15 '22 22:09 mickael-kerjean

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

MeiRos avatar Feb 05 '23 08:02 MeiRos