Giter Club home page Giter Club logo

docker-ethereum's Introduction

Project info

Docker-compose

# Start the Node
docker-compose build
docker-compose up

# Start stop without rebuilding
docker-compose stop
docker-compose start

Usefull Geth commands

# Connect to the containers shell
docker exec -it node1 sh

# Geth
geth attach http://:8545

# all commands available. Such as miner.
geth attach ipc:/root/ethereum/geth.ipc

admin.addPeer("enode://a89fa52e70a017ba650dfb348d55baa8187746f2954c6ea2cd9196d75ee203208d8ae27010d75cee3421aa5f39112b8499499d3168bd686815c826b1e02083dd@172.18.0.2:30303");


## Show ether
web3.fromWei(eth.getBalance(eth.coinbase), "ether")
web3.fromWei(eth.getBalance(eth.accounts[1]), "ether")

## Node info
admin.nodeInfo

# Ethereum network state
http://localhost:3000/

Issues

If the node2 shouldn't connect the configured IP address in the "/node2/addPeer.js". The IP address of Node can be determined with:

# Ccheck if the peer node1 is connected
docker exec -it node2 sh
geth attach ipc:/root/ethereum/geth.ipc
admin.peers # if this command returns an empty list then node2 is not connected to node1. I
exit. 
# Determine the IP of node1
docker exec -it node2 sh
getent hosts node1 | awk '{ print $1 }'

docker-ethereum's People

Contributors

kabl avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.