Docker Repo for BitcoinCash.
Mandatory Requirement: Must use a local mount volume and config file.
Example:
sudo docker run -it --name=bitcoincash-docker \
-v /path/to/local/bitcoincash/dir:/opt/bitcoincash \
-p 127.0.0.1:18332:18332 kp666/bitcoincash-docker:latest
Config file is read from: /opt/bitcoincash/bitcoind.conf
, i.e., /path/to/local/bitcoincash/dir/bitcoind.conf
##Storing of Data
You can store data within /opt/bitcoincash/data
or any directory within /opt/bitcoincash
.
This will inturn store your data within /path/to/local/bitcoincash/dir
described above.
Hence, to store within a different local dir, create a hard symlink for any other directory inside /path/to/local/bitcoincash/dir
and then use that directory as datadir
in bitcoind.conf
###Example
If your host directory is /usr/local/bitcoincash
and want to store data in /var/bitcoincash
, do the following:
mkdir -p /usr/local/bitcoincash
mkdir -p /var/bitcoincash
ln -s /var/bitcoincash /usr/local/bitcoincash/data
and use /opt/bitcoincash/data
as your data dir inside the bitcoind.conf
#bitcoind.conf
datadir=/opt/bitcoincash/data
##Based on: https://github.com/sreekanthgs/bitcoin-docker