Dockerfile for Garlicoin daemon under Linux
💰 Donations welcomed at GTGrDXcusqnvXhXhGBJEFwpwhXrSftAHcw
🙇
See garlicoin.conf for an example configuration file.
$ docker volume create garlicoin_data
$ docker run -d \
-p 42068:42068 \
-p 42069:42069 \
-v garlicoin_data:/data/garlicoin \
--restart=always \
--name garlicoin \
ewrogers/garlicoin:latest -rescan -txindex
NOTE: The -rescan
and -txindex
args are optional. Any args after the docker image are passed to garlicoind
directly.
# cp wallet.dat /var/lib/docker/volumes/garlicoin_data/_data
A new wallet will be created automatically if you do not have an existing one you wish to use.
$ nano garlicoin.conf
# cp garlicoin.conf /var/lib/docker/volumes/garlicoin_data/_data
It is highly recommended that you change the rpcpassword
field.
$ docker restart garlicoin
$ docker exec -it garlicoin /bin/bash
# garlicoin-cli -datadir=${GARLICOIN_DATA_DIR} getblockchaininfo
# garlicoin-cli -datadir=${GARLICOIN_DATA_DIR} getaddressesbyaccount ""
# garlicoin-cli -datadir=${GARLICOIN_DATA_DIR} getbalance
You should see getblockchaininfo
return a non-zero blocks
field. This indicators which block your local wallet is on when syncing (it should eventually match the current head block number).