uphold / docker-bitcoin-abc

A Bitcoin ABC docker image.
MIT License
24 stars 14 forks source link

Unable to access docker exposed rpc port from local host #9

Open jonathansmirnoff opened 6 years ago

jonathansmirnoff commented 6 years ago

I tried from bitcoind to the docker image but the connection was refused. I did the following: docker run -p 18332:18332 --rm --name bitcoin-abc-server -it uphold/bitcoin-abc -printtoconsole -regtest=1 -rpcallowip=127.0.0.1 -rpcpassword=abc -rpcuser=abc

Is there a way to expose the 18332 port to allow the connection from my host machine?

jonathansmirnoff commented 6 years ago

I resolved this running this command: docker run -p 18332:18332 --rm --name bitcoin-abc-server -it uphold/bitcoin-abc -printtoconsole -regtest=1 -rpcpassword=abc -rpcuser=abc I think the problem with the parameter rpcallowip

qq29oo commented 5 years ago

docker run --env BITCOIN_ABC_DATA=/home/bitcoin/.bitcoin -p 8333:8333 --rm -it uphold/bitcoin-abc \ -printtoconsole \ -testnet \ -rpcbind=0.0.0.0 \ -rpcport=8333 \ -rpcallowip=0.0.0.0/0 \ -rpcpassword=bch \ -rpcuser=bch

Here is my docker command,and I can accesss the rpc port