Coder Social home page Coder Social logo

docker-iop-node's Introduction

docker-iop-node

Run a IoP wallet mining node within a Docker container.

Requirements

  • A IoP mining licence
  • A Linux host
  • A Docker install

Quick setup

Disclaimer: Make sure to properly protect your wallet and other sensitive data. None of the authors, contributors, administrators, or anyone else connected with this repository, in any way whatsoever, can be responsible for your use of this project.

  1. Clone or download the current repository.
cd ~/
git clone https://github.com/naei/docker-iop-node.git
  1. Inside the data folder edit iop.conf to add your IoP address and specify the number of threads you want to use. If you have a wallet.dat file, add it here too.

  2. Launch a terminal on the project's folder, build the Docker image and run the container:

cd ~/docker-iop-node
# build
docker build -t naei/docker-iop-node .
# run attached
docker run -it -p 55001:56001 -p 56001:56001 -v ~/docker-iop-node/data:/root/.iop --name iop_node naei/docker-iop-node
# if your wallet is encrypted, unlock wallet to start mining
iop-cli walletpassphrase <YOUR_WALLET_PASSPHRASE> 30

Note: if you are testing this Docker setup on Windows, or if you want your conf and blockchain data to stay in the container only, do not expose the volume when running the container:
docker run -it -p 55001:56001 -p 56001:56001 --name iop_node naei/docker-iop-node
Be aware that any further modification on the iop.conf or wallet.dat must be done inside your Docker volume!

  • To detach without exiting the container, use the following keyboard shortcuts: ctrl+p / ctrl+q
  • To re-attach the running container: docker exec -it iop_node bash
  • To restart the stopped container: docker restart iop_node && docker exec -ti iop_node bash

docker-iop-node's People

Contributors

naei avatar

Watchers

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