Skip to content

thelolagemann/docker-gminer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-gminer

Docker Image Size (latest by date) GitHub Workflow Status Gminer version

A docker container for quickly getting up and running with gminer.

Table of Contents

Requirements

AMD

AMD GPUs are currently unsupported. See issue #1

NVIDIA

CUDA

Ensure you have the correct nvidia-drivers installed, and then run nvidia-smi in order to check your currently supported CUDA version. For example, 11.4 => thelolagemann/gminer:latest-cuda-11.4.3. Currently, images are automatically generated on each new gminer release, for CUDA versions

  • 11.2.2
  • 11.3.1
  • 11.4.3
  • 11.5.1
  • 11.6.0

Quick start

NOTE: The command provided is an example and should be adjusted for your needs.

Launch the miner with the following command:

docker run -d \
  --name="gminer" \
  --gpus=all \
  -e WALLET_ADDRESS="88yUzYzB9wrR2r2o1TzXxDMENr6Kbadr3caqKTBUNFZ3dWVt6sJcpWBAwMwNRtEi7nHcBcqzmExNfdNK7ughaCeUFuXXpPp" \
  -e MINING_ALGO="ethash" \
  -e MINING_POOL="gulf.moneroocean.stream:11024" \
  -e DWALLET_ADDRESS="EQDMgD4Gz-FEEgeQMEq24a3-2qE857yrlnvVngEP6obQJ8t3" \
  -e DMINING_ALGO="ton" \
  -e DMINING_POOL="wss://pplns.toncoinpool.io/stratum" \
  --restart=always \
  thelolagemann/gminer:latest-cuda-11.6.0
Parameter Description
-d Run the container in the background. If not set, the container runs in the foreground.
-e Pass an environment variable to the container. See the Environment Variables section for more details.

Environment variables

Variable Description Default
RIG_NAME Name used to identify the mining rig. Randomly generated
WALLET_ADDRESS The wallet to payout to. (unset)
MINING_ALGO Mining algo to use. ethash
MINING_POOL URL of the mining pool to connect to. gulf.moneroocean.stream:11024
DMINING_ALGO Dual mining algo to use ton
DMINING_POOL URL of the dual mining pool to connect to. wss://pplns.toncoinpool.io/stratum
DWALLET_ADDRESS The wallet to payout to for dual mining. (unset)

Docker Compose

Here is an example of a docker-compose.yml file that can be used with docker-compose.

NOTE: Make sure to adjust the configuration according to your needs.

version: "3.9"
services:
  gminer:
    image: thelolagemann/gminer:latest-cuda-11.6.0
    environment:
      MINING_ALGO: "ethash"
      MINING_POOL: "gulf.moneroocean.stream:11024"
      DMINING_ALGO: "ton"
      DMINING_POOL: "wss://pplns.toncoinpool.io/stratum"
      DWALLET_ADDRESS: "EQDMgD4Gz-FEEgeQMEq24a3-2qE857yrlnvVngEP6obQJ8t3"
      RIG_NAME: "gpu~ethash"
      WALLET_ADDRESS: "88yUzYzB9wrR2r2o1TzXxDMENr6Kbadr3caqKTBUNFZ3dWVt6sJcpWBAwMwNRtEi7nHcBcqzmExNfdNK7ughaCeUFuXXpPp"
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              count: 1
              capabilities: [gpu]

Building

In order to build the container run the command.

docker build .

When building docker containers, you can pass build arguments with the --build-arg flag. Listed below are the available build arguments you can pass during build.

Argument Description Default
GMINER_VERSION The version of gminer to build the container with. 3.44
CUDA_BASE The version of CUDA to build the container with. 11.6.1
UBUNTU_VERSION Ubuntu OS base container version.1 20.04

1: Check NVIDIA's dockerhub to correctly match up the CUDA and Ubuntu versions.

For example, to build a container with cuda version 11.6.1 and gminer 3.44, run the command

docker build --build-arg GMINER_VERSION=3.44 --build-arg CUDA_BASE=11.6.1 .

License

This project is licensed under the MIT license - see the LICENSE file for details