Artiume / docker-nsfminerOC

Docker container for Ethereum mining with CUDA (nsfminer) with Nvidia OC capabilities.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker container for Ethereum mining with CUDA (nsfminer) with Nvidia OC capabilities.

This Docker container was inspired by the docker-nsfminer which was inspired by docker-ethminer. It uses the nsfminer.

NOTE: Tested with Unraid 6.9.1

Requirements

  • NVIDIA drivers for your GPU installed.

Usage

docker run \
-it --priveleged --restart unless-stopped --name=NsfminerOC --runtime=nvidia --gpus=all \
olehj/docker-nsfmineroc \
-e NSFMINER_GPU=0 \							# Set GPU ID
-e NSFMINER_GPUPOWERLIMIT=500 \						# Set power limit for GPU in Watt
-e NSFMINER_POWERMIZER=2 \						# Set PowerMizer performance level
-e NSFMINER_GPUGFXCLOCKOFFSET=0 \					# Set GPU graphics clock offset
-e NSFMINER_GPUMEMCLOCKOFFSET=0 \					# Set GPU memory clock offset
-e NSFMINER_HWMON=2 \							# Set Feedback level from nsfminer
-e NSFMINER_TRANSPORT=stratum1+ssl \					# Set transport for worker
-e NSFMINER_ETHADDRESS=0x516eaf4546BBeA271d05A3E883Bd2a11730Ef97b \	# Set your worker ethereum address
-e NSFMINER_WORKERNAME=worker \						# Set a worker name
-e NSFMINER_ADDRESS1=eu1.ethermine.org \				# Set address 1 for worker, both must be set
-e NSFMINER_ADDRESS2=us1.ethermine.org \				# Set address 2 for worker, both must be set
-e NSFMINER_PORT1=5555 \						# Set port for address 1
-e NSFMINER_PORT2=5555 \						# Set port for address 2
-e NSFMINER_GPUFANCONTROLL=0 \						# Set GPU fan controll, 0 will run auto and other fan settings are ignored
-e NSFMINER_GPUFAN1=0 \							# Set the FAN ID 1 of GPU
-e NSFMINER_GPUFANSPEED1=100 \						# Set the speed in percent of FAN ID 1
-e NSFMINER_GPUFAN2=1 \							#   Same as above, skip and delete if there's no more fans available.
-e NSFMINER_GPUFANSPEED2=100						# 

NOTE: -U [--cuda] (Mine/Benchmark using CUDA only) is set by default and can't be changed. -R [--report-hashrates] Report hashrates is set by default and can't be changed. --nocolor No color is set by default and can't be changed.

Show Logs

docker logs -f NsfminerOC

Example

docker run \
-it --priveleged --restart unless-stopped --name=NsfminerOC --runtime=nvidia --gpus=all \
docker-nsfmineroc \
-e NSFMINER_GPU=all \
-e NSFMINER_GPUPOWERLIMIT=330 \
-e NSFMINER_GPUGFXCLOCKOFFSET=0 \
-e NSFMINER_GPUMEMCLOCKOFFSET=1600 \
-e NSFMINER_HWMON=2 \
-e NSFMINER_TRANSPORT=stratum+tcp \
-e NSFMINER_ETHADDRESS=guodejie \
-e NSFMINER_WORKERNAME=001 \
-e NSFMINER_ADDRESS1=eth.f2pool.com \
-e NSFMINER_ADDRESS2=eth-backup.f2pool.com \
-e NSFMINER_PORT1=6688 \
-e NSFMINER_PORT2=6688 \

Build

To build the image locally

docker build -t olehj/docker-nsfmineroc .

Support

Leave a tip here 0x516eaf4546BBeA271d05A3E883Bd2a11730Ef97b

About

Docker container for Ethereum mining with CUDA (nsfminer) with Nvidia OC capabilities.

License:GNU Lesser General Public License v3.0


Languages

Language:Shell 74.2%Language:Dockerfile 25.8%