Thanks for the quick responses!
I tried running without --user, got the same error with permission denied to touch the data/ directory
$ podman run -d --name bitwarden -e ROCKET_PORT=8080 -v
/home/spytec/Bitwarden/bw-data/:/data/ -p 8080:8080
bitwardenrs/server:latest
With the --userns=keep-id I do get the 1000:1000 on the folder and the container runs as it, but also there I get permission denied.
$ podman run -d --userns=keep-id --name bitwarden -e ROCKET_PORT=8080 -v /home/spytec/Bitwarden/bw-data/:/data/ -p 8080:8080 bitwardenrs/server:latest
If I tried this to see it inside the container:
$ podman run -ti --name bitwarden --rm --userns=keep-id -e [ROCKET_PORT=8080,ENABLE_DB_WAL=false] -v /home/spytec/Bitwarden/bw-data/:/data/ -p 8080:8080 bitwardenrs/server:latest /bin/bash
1000@7253b86a0681:/$ touch /data/test
touch: cannot touch '/data/test': Permission denied
1000@7253b86a0681:/$ ls -l | grep data
drwxrwxrwx. 2 1000 1000 4096 Jun 13 16:57 data
Thanks,
Eric Gustavsson
Associate Software Engineer
Red Hat