Git Product home page Git Product logo

private-ethereum-network-with-docker's Introduction

Private Ethereum Network

Private ethereum blockchain network with 10 nodes (more can be added) in a docker container. Docker allows you to create, deploy and manage virtualized application containers on a common operating system. follow the instructions below to get the ethereum network working 😃

Getting started

1. Installing

1.1. Standalone Ethereum node

Prerequisites

Docker Toolbox installed.

To download and install Docker Toolbox for your environment please follow the Docker Toolbox instructions.

After Docker Toolbox has been installed, create a default machine to run Docker against.

Lets go

To run a single test Ethereum node run the following:

$ docker-compose -f docker-compose-standalone.yml up -d

If using docker-machine you should be able to get to the JSON RPC client by doing:

open http://$(docker-machine ip default):8545

Scaling the number of nodes/containers in the cluster

You can scale the number of Ethereum nodes by running:

docker-compose scale eth=3

Test accounts ready for use

As part of the bootstrapping process we bootstrap 10 Ethereum accounts for use pre-filled with 100 Ether for use in transactions by default.

If you want to change the amount of Ether for those accounts See files/genesis.json.

2. Interact with geth

To get attached to the geth JavaScript console on the node you can run the following

docker exec -it privateethereumdocker_geth_1 geth attach ipc://root/.ethereum/devchain/geth.ipc

Then you can miner.start(), and then check to see if it's mining by inspecting web3.eth.mining. 😄

private-ethereum-network-with-docker's People

Contributors

chandrasd avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.