On Mon, Jun 17, 2019, at 9:53 AM, Eric Gustavsson wrote:
Hi all,
I got a bit on an issue trying to spin up a container with a volume mounted to the container's /data directory. Got a related issue here but I believe I'm just missing out on something Podman specific https://github.com/dani-garcia/bitwarden_rs/issues/506
When I run this command and mount /bw-data to container's /data the bitwardenrs image can't write to it. podman run -d --user 1001 --name bitwarden -e [ROCKET_PORT=8080,ENABLE_DB_WAL=false] -v /home/spytec/Bitwarden/bw-data/:/data/ -p 8080:8080 bitwardenrs/server:latest
Inside the container the /data directory is assigned to root, outside the container /bw-data has 0777 permissions and belong to myself (user 1001).
Am I missing something?
With rootless containers, the root uid inside the container is the regular uid outside of the container. Use `--userns=keep-uid` to see your user mapped as the same uid inside and out. V/r, James Cassell