ruimarinho / bitcoin-core

A modern Bitcoin Core REST and RPC client.
477 stars 186 forks source link

chmod: changing permissions of '/home/bitcoin/.bitcoin': Permission denied #144

Open realSConway opened 1 year ago

realSConway commented 1 year ago

Hello experts,

I'm trying to run ruimarinho/bitcoin-core container with podman as a root-less user with UID/GUID 1000.

$ id
uid=1000(support) gid=1000(support) groups=1000(support),480(bitcoin) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

Command used:

podman run  \
    --name bitcoin-core \
    --user 1000:1000 \
    --volume data-bitcoin-core:/home/bitcoin/.bitcoin \
    ruimarinho/bitcoin-core

When running container, error: chmod: changing permissions of '/home/bitcoin/.bitcoin': Permission denied

volume info:

$  l -la $HOME/.local/share/containers/storage/volumes/data-bitcoin-core/
total 0
drwx------. 1 support support  10 Dec 12 21:51 ./
drwx------. 1 support support 742 Dec 13 21:31 ../
drwxr-xr-x. 1 support support   0 Dec 12 21:48 _data/

What am I doing wrong? Kind regards