dashpay / docker-dashd

Docker image that runs the Dash dashd node in a container for easy deployment
MIT License
33 stars 55 forks source link

-reindex option when running dashd #30

Open tanggrapes opened 4 years ago

tanggrapes commented 4 years ago

Attaching to 9ab47c9e9a64_dashd 9ab47c9e9a64_dashd | + dash_init 9ab47c9e9a64_dashd | + '[' '!' -e /dash/.dashcore/dash.conf ']' 9ab47c9e9a64_dashd | + cat /dash/.dashcore/dash.conf 9ab47c9e9a64_dashd | rpcport=9998 9ab47c9e9a64_dashd | rpcconnect=127.0.0.1 9ab47c9e9a64_dashd | rpcuser=winstantpay 9ab47c9e9a64_dashd | rpcpassword=iwillchangethat 9ab47c9e9a64_dashd | server=1 9ab47c9e9a64_dashd | Initialization completed successfully 9ab47c9e9a64_dashd | + echo 'Initialization completed successfully' 9ab47c9e9a64_dashd | + '[' 0 -gt 0 ']' 9ab47c9e9a64_dashd | + args=("-rpcallowip=::/0") 9ab47c9e9a64_dashd | + exec dashd -rpcallowip=::/0 9ab47c9e9a64_dashd | : Error opening block database. 9ab47c9e9a64_dashd | Please restart with -reindex or -reindex-chainstate to recover. 9ab47c9e9a64_dashd exited with code 1

how can i modify the entrypoint of the image? I want to run dashd with -reindex options

nmarley commented 4 years ago

Hi,

You should be able to run the image with the dashd command and other flags. E.g.:

docker run --rm --name whatever -it dashpay/dashd dashd -reindex

Can you see if that will work for you?