Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

container exits immediately #86

Open
Evanfeenstra opened this issue Jul 28, 2021 · 2 comments
Open

container exits immediately #86

Evanfeenstra opened this issue Jul 28, 2021 · 2 comments

Comments

@Evanfeenstra
Copy link

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
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants