/docker-nheqminer-cuda

CUDA capable docker image of nheqminer (zcash/equihash miner)

Primary LanguageDockerfileMIT LicenseMIT

I have now had my docker running 4+ weeks which meets my standards for "stable".

Releases

Ubuntu 16.04

Requirements


This assumes that current version of NVIDIA drivers and Docker is installed, it also requires the nvidia-docker plugin which allows the image to access the host GPU and drivers with minimal extra requirements on you or the host.

For convenience there is also a cpu only build.

nvidia-docker install requirements

An example of installing nvidia-docker on Ubuntu 16.04

It really isn't so bad...

# requirement
sudo apt-get install nvidia-modprobe
# Install nvidia-docker and nvidia-docker-plugin
wget -P /tmp https://github.com/NVIDIA/nvidia-docker/releases/download/v1.0.0/nvidia-docker_1.0.0-1_amd64.deb
sudo dpkg -i /tmp/nvidia-docker*.deb && rm /tmp/nvidia-docker*.deb

# Test nvidia-smi
nvidia-docker run --rm nvidia/cuda nvidia-smi

Quickstart instructions


A few example commands to help get things up and running quickly. Do not run more than two threads per instance, if you want to run CPU and GPU on the same machine spin up seperate instances. DO RUN two threads per instance for example -cd 0 0 1 1. On a stock GTX1070 with two threads the djezo solver runs at around 380 Sol/s.

DOCKER RUN

nvidia-docker run --restart always -i -d -h nheqminer  unsalted/nheqminer \
nheqminer -l zec-us1.dwarfpool.com:3335 -u ZEC_ADDRESS.user -cd 0 

DOCKER Enter the container

RUN

nvidia-docker run --rm -i -d -h nheqminer --name nheqminer unsalted/nheqminer

EXEC nheq command (start, help, benchmark)

docker exec nheqminer bash -c "nheqminer -l zec-us1.dwarfpool.com:3335 -u YOUR_ZEC_ADDRESS.user -cd 0 0"

Enter the container

docker exec -it nheqminer bash

Makefile

A makefile is provided with quickstart commands the only required variable is your ADDRESS, it will still run but it will mine to my address (thank you).

Run with flags

make nheqminer FLAGS="-l zec-us1.dwarfpool.com:3336 -u t1UoqVgJYfRuZZyaU93FncJzXdhKmx6Vpb5.botbot -cd 0 1"

Run with variables

make run GPU="0 1" ADDRESS=MY_ADDRESS PORT=3356

Run cpu

make cpu ADDRESS=MY_ADDRESS PORT=3354 THREADS=4

Full list of default variables


GPU=0
THREADS=Null
HOST=HOSTNAME
RESTART=always
UID=RANDOM
LOCATION=zec-us1.dwarfpool.com
PORT=3335
ADDRESS=t1UoqVgJYfRuZZyaU93FncJzXdhKmx6Vpb5
DOCKER=nvidia-docker


RUN

docker run --rm -i -d -h nheqminer --name nheqminer unsalted/nheqminer:cpu

EXEC command (start, help, benchmark)

docker exec nheqminer bash -c "nheqminer -l zec-us1.dwarfpool.com:3334 -u YOUR_ZEC_ADDRESS.user -t 2"

Enter the container

docker exec -it nheqminer bash

For more information about using nheqminer see the nicehash nheqminer repo.

Please ask questions and post bugs to github.