Skip to content

PTRFRLL/nv-docker-trex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

T-Rex Miner Nvidia Docker

Publish Docker image Donate with Ethereum

Mine ethash (and others) on docker/nvidia-docker

About

This docker was specficially made for running on an Unraid system that uses LinuxServer's Unraid Nvidia or the new Nvidia-Driver plug-in.

That said, this docker does not require Unraid, it can be used on any system that uses nvidia-docker

Miner

Currently uses T-Rex Miner for mining.

Getting Started

Unraid

Search for trex miner on the Community Applications page:

community apps

Run nvidia-smi on Unraid console to determine CUDA version:

cuda version

If using CUDA 10, use the cuda10 tag:

ptrfrll/nv-docker-trex:cuda10

Specify GPU

If you have multiple GPUs and only want to use specific ones for mining, you can add the NVIDIA_VISIBLE_DEVICES env variable to the Docker. Add a comma separated list of your GPU UUIDs you want to mine with as the value.

nvidia

Here's a great example by SpaceInvader (here he's doing it for an Emby container but the process is the same)

Docker

Simply pull and run docker and add the needed variables:

NOTE: If you don't change the default wallet, you'll be mining for me... 😁

Variable Value Default
WALLET Your wallet address My ETH wallet
SERVER Mining pool URL stratum+ssl://us2.ethermine.org:5555
WORKER Worker name Rig
ALGO t-rex algorithm to mine ethash
PASS Password for mining pool x
API_PASSWORD Password for T-rex WebUI Password1

If you want to use the config file, map the /config path as well

Example:

docker run -d --name='trex-miner' -e WALLET=0xYOUR_ETH_WALLET_ADDRESS -e SERVER=stratum+ssl://us2.ethermine.org:5555 -e WORKER=Rig -e ALGO=ethash  -p '4067:4067/tcp' --runtime=nvidia ptrfrll/nv-docker-trex

With Config File:

docker run -d --name='trex-miner' -e WALLET=0xYOUR_ETH_WALLET_ADDRESS -e SERVER=stratum+ssl://us2.ethermine.org:5555 -e WORKER=Rig -e ALGO=ethash  -p '4067:4067/tcp' -v '/path/to/config/':'/config':rw --runtime=nvidia ptrfrll/nv-docker-trex