Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jonathansmirnoff opened this issue Aug 11, 2018 · 2 comments
Open

Comments

@jonathansmirnoff
Copy link

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
Copy link
Author

jonathansmirnoff commented Aug 13, 2018

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
Copy link

qq29oo commented Apr 15, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants