Giter Site home page Giter Site logo

murf2 / xmrig.docker Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 2.0 8 KB

An up-to-date and easy to use XMRig image for mining Monero on any x86/ARM Docker host

License: MIT License

Dockerfile 41.24% Shell 58.76%
cryptocurrency docker docker-compose monero xmrig

xmrig.docker's Introduction

xmrig.docker - Monero miner in docker for x86/ARM hosts

docker pull ghcr.io/murf2/xmrig.docker:latest

Launch it

Make sure that the container is running in privileged mode if you encounter the msr kernel module is not available error message. The following startup examples are already set to run in privileged mode. This does not work in a VM.

# launch docker container
docker run --privileged --name miner --rm -it \
    -e POOL_URL=<your pool url> \
    -e POOL_USER=<your public monero address> \
    -e PRIORITY=1 \
    -e THREADS=1 \
    ghcr.io/murf2/xmrig.docker:latest

docker-compose.yml

version: "3.8"
services:
  xmrig:
    container_name: xmrig
    hostname: xmrig
    image: ghcr.io/murf2/xmrig.docker:latest
    restart: unless-stopped
    privileged: true
    environment:
      - POOL_USER=<your public monero address>
      - POOL_URL=<your pool url>
      - PRIORITY=1
      - THREADS=1

Build it yourself

git clone https://github.com/MuRF2/xmrig.docker && cd xmrig.docker
docker build . -t <your_tag>  --build-arg VERSION=<xmrig-version>

Complete list of supported environment variable:

  • POOL_USER: your wallet address, default to mine
  • POOL_URL: the pool address
  • POOL_PASS: the pool password, or worker ID, following the pool documentation.
  • DONATE_LEVEL: percentage of donation to Xmrig.com project (default '1' -> 1%)
  • PRIORITY: CPU priority. 0=idle, 1=normal, 2 to 5 for higher priority (default '1')
  • THREADS: number of thread to start (default CPU/2)
  • ACCESS_TOKEN: Bearer access token to access to xmrig API (served on 3000 port), default is a generated token (uuid).
  • ALGO: mining algorithm https://xmrig.com/docs/algorithms (default is empty)
  • COIN: that is the coin option instead of algorithm (default is empty)

xmrig API

Acknowledgments

I used metal3d/docker-xmrig's repository as a starting point

xmrig.docker's People

Contributors

murf2 avatar

Watchers

 avatar

Forkers

sudtanj plasto13

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.