Bitcoin Forum
May 31, 2024, 01:36:46 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoin Docker!  (Read 237 times)
MakFrogz (OP)
Newbie
*
Offline Offline

Activity: 13
Merit: 1


View Profile
July 23, 2019, 02:32:37 PM
Merited by ABCbits (1)
 #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?
HeRetiK
Legendary
*
Offline Offline

Activity: 2954
Merit: 2093



View Profile
July 23, 2019, 03:16:48 PM
Merited by Halab (2), bones261 (2), ABCbits (1)
 #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
MakFrogz (OP)
Newbie
*
Offline Offline

Activity: 13
Merit: 1


View Profile
July 25, 2019, 12:01:37 PM
 #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
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!