Hot answers tagged

15 votes
Accepted

Running a custom private go-ethereum node cluster using docker

Summary Check that there is network connectivity between the two Docker containers and reconfigure if necessary. Check there is sufficient memory allocated to each container. In each Docker container ...
BokkyPooBah's user avatar
  • 40.3k
9 votes

Ethereum client-go RPC response 403 “invalid host specified”

Adding --rpcvhosts=* this flag to the starting command solved the issue
gshock's user avatar
  • 231
9 votes

How can I completely automate a Docker image and Dockerfile for a geth test network

Here's the steps I used to create a Docker image that recreates a consistent test environment: Create a Docker file (see listing below) with empty geth data directory and files as noted in the Docker ...
Paul S's user avatar
  • 4,271
8 votes
Accepted

How to containerize Eris service

Eris is a cli tool focused on container orchestration for blockchainized applications. Normally we recommend it be installed on the host. It's certainly possible to run from inside docker but it will ...
Casey Kuhlman's user avatar
7 votes

How to set up Geth in a Docker container on a VM such that RPC works?

The issue is that the default RPC server is "localhost", which doesn't seem to work properly in a Docker container in a VM. Instead, the server name of "0.0.0.0" will bind to all IP addresses the ...
MidnightLightning's user avatar
5 votes

Ethereum private network on docker

We have written a Docker container to run a private Ethereum network that works with Remix and MetaMask. You can see the details on our Dockerized Ethereum Private Testing Environment Compatible with ...
sw.'s user avatar
  • 151
4 votes
Accepted

Node discovery: unreachable bootnode in private distributed network

Well, apparently the reason why the connection is being refused is that "'Connection refused' is ok for the Go bootnode. [as i]t does not accept TCP connections", as suggested by fjl in the go-...
Betty Sanchez's user avatar
3 votes

Cannot connect to Infura inside a docker container: Cannot find module 'websocket'

It seems inside a docker container, nodejs has problem getting the websocket from github. So I just add the websocket library directly in my app: npm install --save websocket
jfjobidon's user avatar
  • 763
3 votes

How to backup account information from Geth in a Docker container?

Ethereum accounts are saved in the $HOME/.ethereum/keystore folder. Since the Docker container is set to run geth as root, that translates to /root/.ethereum/keystore Using the docker cp command we ...
MidnightLightning's user avatar
3 votes

How can I completely automate a Docker image and Dockerfile for a geth test network

I followed the steps described in an extremely helpful answer of @Paul S. The result can be found as a docker module under https://github.com/pragmaticcoders/docker-geth-dev Comparing to the original ...
Marek Kowalski's user avatar
3 votes
Accepted

Set up Mist browser for a private go-ethereum docker cluster

You should be able to run geth on your command line with your private network setup parameters IF you have --ipcpath pointing to the default ~/Library/Ethereum/geth.ipc file path. Start Ethereum ...
BokkyPooBah's user avatar
  • 40.3k
3 votes
Accepted

Docker mythril can't connect to Ganache or local .sol contracts

After reading up on Docker, I found the following solutions. To connect to a local RPC, use host.docker.internal instead of localhost. For example, Ganache listens on port 7545 by default: docker ...
Svante's user avatar
  • 440
3 votes
Accepted

Chainlink node not initializing, failed to initialize ORM: initializeORM#NewORM: unable to init DB: unable to open postgresql

The error was arriving because I was running postgres on my local machine for which I have to add --network host in the end. Updated Command docker run --name chainlink-kovan --network host -p 6688:...
Anupam's user avatar
  • 572
3 votes
Accepted

How can I create a local USDT testnet?

I will try to answer as best as I can, although the question is not 100% clear to me. Eth transfer Transfer of Ether between accounts is handled natively by the blockchain. You do not need to deploy ...
Undead8's user avatar
  • 3,550
2 votes

Two chains on Eris

You can actually do this my running different chains on different ports. This is possible by either using --publish or by using --ports flag. If you use --publish flag then it will randomise the ports....
11t's user avatar
  • 253
2 votes

Two chains on Eris

Multiple chains running at once on the Eris platform is indeed possible. To do this, for each chain, when you run eris chains new|start, add the --publish flag which will randomize the ports and allow ...
Zach Ramsay's user avatar
2 votes

Running a custom private go-ethereum node cluster using docker

Eris has a geth Dockerfile with some custom scripts here: https://github.com/eris-ltd/common/tree/master/docker/geth It's somewhat out of date though updates are in the pipeline over the next month. ...
Zach Ramsay's user avatar
2 votes
Accepted

Adding nodes in private network of docker containers hosted in different VMs

Prepare your nodekey for each node in advance. It is just a 512-bit random number. Then store them somewhere, along with the public ECDSA keys derived from there. The public keys are the components ...
Herman Junge's user avatar
  • 2,381
2 votes
Accepted

How to save Parity data with docker

The solution is to mount it on docker with -v to a local folder Example First on your host create the folder where parity is going to save the data mkdir /srv/parity Then make sure you have the ...
Christian's user avatar
  • 201
2 votes

Running ropsten testnet with docker error

You need to tell the executable the path inside the container. i.e. /root/.ethereum/testnet_genesis.json
Herman Junge's user avatar
  • 2,381
2 votes

Eris : error compiling contracts

The --compiler flag should be the IP of the compilers service rather than the docker-machine hosts ip. By default you can omit the flag to use the remote hosted compilers. Since it looks like you'...
Zach Ramsay's user avatar
2 votes

How does one setup a private network with ethereum docker images?

If you want to create a private network, you need to create your own genesis file (see the "Operating a private network" section of the documentation of the client-go Docker image. If you create that ...
MidnightLightning's user avatar
2 votes

How to make a Docker container talk to geth.ipc on local host

If you mount the folder containing the IPC file rather than the file directly it will work.
Daniel's user avatar
  • 121
2 votes

Unable to deploy contract on Besu network(docker) using dynamic IP

I think you have an error in your truffle-config.js The port should be 8545 instead of 8555.
Abdel's user avatar
  • 41
2 votes
Accepted

TheGraph is not connecting to IPFS locally

The issue was that I had RemixIDE running on port 5001 and subgraph didn't give me a "port unavailable" error or anything. Turning off RemixIDE solved the problem.
blockbyblock's user avatar
1 vote
Accepted

Deploying DAPP on cloud using docker

You need to deploy your DAPP's smart contracts on a test etherium blockchain first and then afterwards you can deploy your DAPP on aws. Docker Link : https://github.com/getamis/istanbul-tools More ...
Mr_Hmp's user avatar
  • 188
1 vote

Puppeth running on Mac with localhost always return err="docker configured incorrectly: bash: docker: command not found\n"

I think I found the root cause to this problem. Puppeth internally uses a ssh connection to the machine where you want to run things; localhost in my case. The SSH daemon is compiled with a default ...
Stefan's user avatar
  • 11
1 vote

geth console cannot attach to geth docker container

It is because you use loopback interface when trying to connect. Just try to use: docker run --rm -it ethereum/client-go \ attach http://$(ip route \ |grep "default via" \ |grep -o '[0-9]\{1,3\}\.[0-...
Oleksii Koshlatyi's user avatar
1 vote

geth console cannot attach to geth docker container

When running outside docker container, it attaches like a remote system. And geth attach cannot connect to remote geth node using geth attach. This answer explains it better detail. The solution to ...
Ayushya's user avatar
  • 1,698
1 vote

Can I run seperatly docker and geth?

I ran into the same problem. I had a web server running in a Docker Container and an Ethereum node (for testnet) running on my machine. It seemed the app in Docker wont be able to connect to the node ...
Pong Cheecharern's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible