Author

Topic: Bitcoin Docker! (Read 270 times)

newbie
Activity: 13
Merit: 1
July 25, 2019, 07:01:37 AM
#3
Which docker image are you using? And what precisely are you trying to do?

If you are using that one -- https://hub.docker.com/r/nicolasdorier/docker-bitcoin -- and are trying to run some RPC commands then maybe you still have to take care of the following:

By default, Docker runs all containers on a private bridge network. This means that you are unable to access the RPC port (8332) necessary to run bitcoin-cli commands.

There are several methods to run bitcoin-cli against a running bitcoind container. The easiest is to simply let your bitcoin-cli container share networking with your bitcoind container:
Code:
   $ docker run -d --rm --name bitcoind -v bitcoin-data:/data NicolasDorier/bitcoin
   $ docker run --rm --network container:bitcoind NicolasDorier/bitcoin bitcoin-cli getinfo



I use this image https://hub.docker.com/r/kylemanna/bitcoind. I tried to send json object like "{"jsonrpc": "2.0", "id":"curltest", "method": "getnetworkinfo", "params": [] }" via postman but i didn`n get response
legendary
Activity: 3150
Merit: 2185
Top-tier crypto casino and sportsbook
July 23, 2019, 10:16:48 AM
#2
Which docker image are you using? And what precisely are you trying to do?

If you are using that one -- https://hub.docker.com/r/nicolasdorier/docker-bitcoin -- and are trying to run some RPC commands then maybe you still have to take care of the following:

By default, Docker runs all containers on a private bridge network. This means that you are unable to access the RPC port (8332) necessary to run bitcoin-cli commands.

There are several methods to run bitcoin-cli against a running bitcoind container. The easiest is to simply let your bitcoin-cli container share networking with your bitcoind container:
Code:
   $ docker run -d --rm --name bitcoind -v bitcoin-data:/data NicolasDorier/bitcoin
   $ docker run --rm --network container:bitcoind NicolasDorier/bitcoin bitcoin-cli getinfo
newbie
Activity: 13
Merit: 1
July 23, 2019, 09:32:37 AM
#1
Hi, guys!
I have problem with bitcoin docker. We opened ports and check it in terminal, then i tried send request from postman to my docker. I didn`t get response, than i tried check ports from browser and i saw that my ports close, than i checked it again in terminal and i saw that my ports open. wtf?
Jump to: