Closed educob closed 4 years ago
Where are you running bitcoin-cli
? You might need to add the docker network subnet to the allowed IP range.
Another thing I don't understand is that docker ps shows that the container is reserving ports 8332-8333 which are mainnet's and port 18443:18444 which are regtest's.
That's simply presentational as indicated by https://github.com/ruimarinho/docker-bitcoin-core/blob/master/0.20/Dockerfile#L43. Unless you see an IP (usually 0.0.0.0), the port is not mapped to the host.
Thanks. I'll take a look.
Hi.
I have created the container with:
I can connect with docker successfully:
docker exec testnetnode bitcoin-cli -testnet -rpcport=18332 -rpcuser=testnet --rpcpassword=xxx getblockchaininfo
But bitcoin-cli doesn't work:
bitcoin-cli -rpcuser=testnet -rpcport=18332 -rpcpassword=xxx getblockchaininfo
Gives error:
From my rpc client I get also get an error:
Error: socket hang up
Another thing I don't understand is that
docker ps
shows that the contrainer is reserving ports 8332-8333 which are mainnet's and port 18443:18444 which are regtest's.1440c49ed036 ruimarinho/bitcoin-core "/entrypoint.sh -tes…" 28 minutes ago Up 28 minutes 8332-8333/tcp, 18443-18444/tcp, 0.0.0.0:18332-18333->18332-18333/tcp testnetnode