Code Monkey home page Code Monkey logo

docker_xmrig's Introduction

XMRig

What is it?

XMRig is the console miner provided by XMRig.

XMRig supports Cryptonight, Argon2, RandomX and their variants.

Example usages

  • To build the image:
$ docker build . --file YOUR_VERSION/Dockerfile.YOUR_ARCH --tag calvintam236/xmrig:mesa-YOUR_VERSION

$ docker build . --file YOUR_VERSION/Dockerfile.YOUR_ARCH --tag calvintam236/xmrig:rocm-YOUR_VERSION

$ curl -L -O --referer https://www.amd.com https://drivers.amd.com/drivers/linux/amdgpu-pro-20.45-1164792-ubuntu-20.04.tar.xz
$ docker build . --file YOUR_VERSION/Dockerfile.YOUR_ARCH --tag calvintam236/xmrig:amdgpu-YOUR_VERSION

$ docker build . --file YOUR_VERSION/Dockerfile.YOUR_ARCH --tag calvintam236/xmrig:cuda-YOUR_VERSION
  • To run the container in background:
$ docker run -d --name YOUR_CONTAINER_NAME calvintam236/xmrig:mesa-YOUR_VERSION -a YOUR_ALGO -o YOUR_POOL_ADDRESS -u YOUR_USERNAME.YOUR_WORKER_NAME -p YOUR_WORKER_PASSWORD --randomx-1gb-pages

$ docker run -d --device /dev/kfd --device /dev/dri --name YOUR_CONTAINER_NAME calvintam236/xmrig:rocm-YOUR_VERSION -a YOUR_ALGO -o YOUR_POOL_ADDRESS -u YOUR_USERNAME.YOUR_WORKER_NAME -p YOUR_WORKER_PASSWORD --no-cpu

$ docker run -d --device /dev/nvidia0 --device /dev/nvidiactl --device /dev/nvidia-uvm --name YOUR_CONTAINER_NAME calvintam236/xmrig:cuda-YOUR_VERSION -a YOUR_ALGO -o YOUR_POOL_ADDRESS -u YOUR_USERNAME.YOUR_WORKER_NAME -p YOUR_WORKER_PASSWORD --no-cpu
  • To get xmrig options:
$ docker run --rm calvintam236/xmrig:mesa-YOUR_VERSION

$ docker run --rm calvintam236/xmrig:rocm-YOUR_VERSION

$ docker run --rm calvintam236/xmrig:amdgpu-YOUR_VERSION

$ docker run --rm calvintam236/xmrig:cuda-YOUR_VERSION
  • To fetch logs of a container:
$ docker logs YOUR_CONTAINER_NAME

Donations

If you like to buy me a coffee, you can donate to here:

  • Ko-fi
  • BTC: 1MTkPFtp3qxE4Y98pTHP3z767RGKmrT92a
  • ETH: 0x5896a85E8c175c563DC00087535582394d394838
  • XMR: 474adYsC8sLVM5gK8DbvtUVb237y9m5eMeRuYpJJVuoYUuMN5EYDuixHWxpEr6iNBb2zv3gowmJjcRoTrjhJLvMTRD1eKio
  • ETC: 0xFaBA3be3b3De5469C3F6C6185150928F3773C7b4
  • ZEC: t1Z5Kc75JQ17txyaDUfwwyabTgsJMfuuSp4

docker_xmrig's People

Contributors

calvintam236 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

vyorick aparra001

docker_xmrig's Issues

CPU can't bind memory

[2022-01-11 03:29:20.087] CPU #00 warning: "can't bind memory"
[2022-01-11 03:29:20.087] CPU #01 warning: "can't bind memory"
[2022-01-11 03:29:20.087] CPU #03 warning: "can't bind memory"
[2022-01-11 03:29:20.087] CPU #02 warning: "can't bind memory"
[2022-01-11 03:29:20.087] CPU #04 warning: "can't bind memory"
[2022-01-11 03:29:20.087] CPU #06 warning: "can't bind memory"
[2022-01-11 03:29:20.087] CPU #05 warning: "can't bind memory"
[2022-01-11 03:29:20.087] CPU #07 warning: "can't bind memory"
[2022-01-11 03:29:20.087] CPU #09 warning: "can't bind memory"
[2022-01-11 03:29:20.087] CPU #08 warning: "can't bind memory"
[2022-01-11 03:29:20.087] CPU #10 warning: "can't bind memory"
[2022-01-11 03:29:20.087] CPU #11 warning: "can't bind memory"

Have you run into this?
I don't get this running the binary outside a container.

$ docker --version
Docker version 20.10.9, build c2ea9bc

msr kernel module is not available

[2022-01-11 03:29:19.378]  msr      msr kernel module is not available
[2022-01-11 03:29:19.378]  msr      FAILED TO APPLY MSR MOD, HASHRATE WILL BE LOW

Have you run into this and solved it?
I'm having this issue and this seems to cut my hash rate dramatically

$ docker --version
Docker version 20.10.9, build c2ea9bc

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.