{"id":22177370,"url":"https://github.com/subhasisbanik/ethereumdocker","last_synced_at":"2026-04-28T22:35:05.222Z","repository":{"id":207058973,"uuid":"105804785","full_name":"subhasisbanik/ethereumDocker","owner":"subhasisbanik","description":"This is a Docker project which runs single Ethereum node in a  private chain","archived":false,"fork":false,"pushed_at":"2017-10-07T18:09:44.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T18:28:09.229Z","etag":null,"topics":["docker-image","ethereum","geth"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/subhasisbanik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-10-04T18:42:56.000Z","updated_at":"2020-11-28T19:51:26.000Z","dependencies_parsed_at":"2023-11-13T22:42:40.228Z","dependency_job_id":null,"html_url":"https://github.com/subhasisbanik/ethereumDocker","commit_stats":null,"previous_names":["subhasisbanik/ethereumdocker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/subhasisbanik/ethereumDocker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subhasisbanik%2FethereumDocker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subhasisbanik%2FethereumDocker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subhasisbanik%2FethereumDocker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subhasisbanik%2FethereumDocker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subhasisbanik","download_url":"https://codeload.github.com/subhasisbanik/ethereumDocker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subhasisbanik%2FethereumDocker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32402671,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker-image","ethereum","geth"],"created_at":"2024-12-02T08:27:44.202Z","updated_at":"2026-04-28T22:35:05.207Z","avatar_url":"https://github.com/subhasisbanik.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"This project can be used for using a single Ethereum node in Docker which runs in a private network.\nThe steps below will take to through the setup of single node to web3 deploy.\n\n1. Clone the project into your machine:\n\n```\nhttps://github.com/subhasisbanik/ethereumDocker.git\n```\n\n2. Make the Docker image:\n\n```\ncd ethereumDocker\ndocker build -t {image-name} .\n```\n3. Run the Docker image as a container:\n\n```\ndocker run -d -i -p {docker-rpc-port}:{host-rpc-port} {image-name}\n```\n\n4. Now enter the container:\n\n```\ndocker exec -it \u003ccontainer-id/container-name\u003e /bin/bash\n```\n\n5. Make a folder in /root for the geth data to be stored:\n\n```\ncd /root\nmkdir testnet\ncd testnet\nmkdir datadir\ncd datadir\nmkdir keystore\ncd ~\n```\n6. Now make a new geth account with any password or empty and correspondingly update the password.txt that will be made:\n\n```\ngeth --datadir \"/root/testnet/datadir\" account new\ncd testnet\ntouch password.txt\ncd ~\n```\n\n\n Note down the account number as you will need it in the next step.\n\n\n7. Now run puppeth to prepare the genesis.json for your private chain setup:\n\n    ```\n    cd testnet\n    puppeth\n    ```\n\n    Please follow the steps by selecting the options in the interactive shell:\n\n    a. 2. Configure new genesis\u003cbr\u003e\n\n    b. 1. Ethash - proof-of-work\u003cbr\u003e\n\n    c. Which accounts should be pre-funded? (advisable at least one)\n    0x{account-number}\u003cbr\u003e\n\n    d. Specify your chain/network ID if you want an explicit one (default = random)\u003cbr\u003e\n    {Enter any value}\n\n    e. Anything fun to embed into the genesis block? (max 32 bytes)\u003cbr\u003e\n    {Skip with enter}\n\n    f. 2. Save existing genesis\u003cbr\u003e\n\n    Now after this you will have your genesis.json file to initialize geth\n\n8. Now we need to initialize geth:\n   \n   ```\n   geth --datadir \"/root/testnet/datadir\" init genesis.json\n   ```\n\n9. Now we need to run geth as a background process:\n   \n   ```\n   nohup geth --datadir \"/root/testnet/datadir\" --networkid {previously-entered-networkid-puppeth} --port {portid} --identity {any-identifiable-name} --verbosity 3 --rpc --rpcapi \"eth,web3,net,admin,miner,personal\" --rpcport {rpc-port-docker} --rpcaddr \"0.0.0.0\" --rpccorsdomain \"*\" --mine --minerthreads 2 --unlock 0 --password \"/root/testnet/password.txt\" console \u0026\n   ```\n\n    Here we need to replace the values with '{}' with valid data.\n\n10. Now enter the geth console with rpc:\u003cbr\u003e\n   ```\n   geth attach rpc:http://127.0.0.1:8545\n   ```\n\n11. Go to https://remix.ethereum.org and copy the below code to generate a sample web3 deploy:\u003cbr\u003e\n\n   ```\n   pragma solidity ^0.4.0;\n    contract test {\n\n        uint _val;\n        function getValue() returns(uint){\n            return _val;\n        }\n        function setValue(uint val){\n            _val=val;\n        }\n    }\n```\n12. Copy the web3 deploy and paste it in the geth console and wait for it to be mined.\n\nCongratulations, you have succssfully set up a private chain Ethereum.\n\nFor more details in Ethereum,\nhttp://www.ethdocs.org/en/latest/ethereum-clients/cpp-ethereum/index.html#quick-start\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubhasisbanik%2Fethereumdocker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubhasisbanik%2Fethereumdocker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubhasisbanik%2Fethereumdocker/lists"}