This is a Nimiq cryptocurrency miner. Run it like
$ docker run -d \
--name nimiq-miner-1.5.3 \
--mount 'type=volume,source=nimiq-miner,destination=/home/nimiq' \
jpsecher/nimiq-miner \
--pool=eu.nimpool.io:8444 \
--wallet-address=NQ6272GHCS6H3XL5L09SFGAM34MK7CU11JFE
Or start it with docker-compose up -d
:
version: "3"
services:
nimiq-miner:
image: jpsecher/nimiq-miner
command: --wallet-address=NQ6272GHCS6H3XL5L09SFGAM34MK7CU11JFE
volumes:
- nimiq-miner:/home/nimiq
restart: on-failure
volumes:
nimiq-miner:
Of course, you need to replace the wallet with your own (but you are welcome to use mine ;-), and maybe change the pool if you fancy a different one, or simply go solo and leave out the pool argument.
You will then have a running Nimiq miner that uses all the available resources for mining.
To see the output from the miner, run one of:
$ docker logs -t -f myminer
$ docker-compose logs
To stop the miner:
$ docker stop myminer
$ docker-compose stop
To restart the miner:
$ docker restart myminer
$ docker-compose restart
$ cd src/miner
$ docker build -t jpsecher/nimiq-miner .