This repository containerizes the XMRig mining software which runs the RandomX Proof-of-Work algorithm.
To build the XMRig image locally:
docker build -t xmrig .
You can pull a pre-built image from tthebc01/xmrig
that is based on nvidia/cuda:11.4.0-runtime-ubuntu:18.04
docker pull tthebc01/xmrig
If you are going to use your GPU with this image, you will need to make sure the host CUDA version and container CUDA versions match. Check what CUDA release you are using:
nvidia-smi
Then build with an appropriate base image using the build-time arg CUDAVERSION
:
docker build -t xmrig --build-arg CUDAVERSION=11.4.0 .
You will need the following information handy to start the container:
- The address and port of the stratum server for the pool you want to mine with. Some popular choices are MineXMR, MoneroOcean, or Nanopool.
- The address of the wallet you want to receive you mining rewards in.
- A name for your mining rig.
docker run -d --rm --env POOL=us-west.minexmr.com --env PORT=443 --env RIG_ID="cyberskull" --env WALLET=4BXXX --gpus all tthebc01/xmrig