container exits immediately
Evanfeenstra opened this issue · 2 comments
Evanfeenstra commented
I see logs like:
Initialization completed successfully
+ [ 0 -eq 0 ]
+ set -- -rpcbind=:8332 -rpcallowip=0.0.0.0/0
+ exec bitcoind -rpcbind=:8332 -rpcallowip=0.0.0.0/0
Then the container exits immediately. Same using "docker run" or docker-compose.
My config is:
daemon=1
regtest=1
listen=0
fallbackfee=0.0002
rpcuser=theuser
rpcpassword=thepass
# accept JSON-RPC commands
server=1
# prune=5500
txindex=1
[regtest]
rpcport=8332
dzmitrykliapkou commented
The same issue when I try to run the container with custom config file or to pass some bitcoind parameters via command:
in docker-compose
davidhrinaldo commented
For anyone else coming across this: you can't run bitcoind in daemon mode in the container or it'll exit immediately. If you have daemon=1
or daemonwait=1
in your bitcoin.conf
remove it and rebuild the container.