I am running bitcoind in unbuntu 16.04. And a web server running in docker container. When I excuted curl in container bash
curl --user user:pass --data-binary '{"jsonrpc":"1.0","method":"getblockchaininfo","params":[]}' -H 'content-type:text/plain;' http://127.0.0.1:18332/
response is curl: (7) Failed to connect to 127.0.0.1 port 18332: Connection refused
docker inner address 172.17.0.1
. However, curl in command line directly is ok.
Below is .conf setting:
server=1
testnet=1
rpcuser=user
rpcpassword=pass
rpcallowip=172.17.0.1
rpcport=18332
rpcconnect=127.0.0.1
I have tried all possible combinations of ip address and port number. All the results are 'Connection refused'
Can anyone advise me how to resolve the problem?
Thanks
Regards, Max