By default, images are created with a bitcoin user/group using a static UID/GID (101:101 on Debian and 100:101 on Alpine). You may customize the user and group ids using the build arguments $UID (--build-arg UID=<uid>) and $GID (--build-arg GID=<gid>).
You can also customize the UID/GID on runtime, such as:
By default, images are created with a
bitcoin
user/group using a static UID/GID (101:101
on Debian and100:101
on Alpine). You may customize the user and group ids using the build arguments$UID
(--build-arg UID=<uid>
) and$GID
(--build-arg GID=<gid>
).You can also customize the UID/GID on runtime, such as:
This will recursively change the ownership of the
bitcoin
home directory and$BITCOIN_DATA
to UID/GID10000:10000
.