Git Product home page Git Product logo

docker-xmr-stak-cpu's Introduction

Neffets has made this much better, so this repo is practically deprecated. https://github.com/neffets/docker-xmr-stak-cpu ...(although it seems I still update occasionally)

What is XMR-Stak?

XMR-Stak is a universal Stratum pool miner. This is a build for CPU-mining only.

This docker image autoconfigures threads by simply getting the core count. All xmr-stak's config.txt variables can be configured with docker run environment variables.

Links

How to use this image

docker run -itd --restart unless-stopped -e WALLET_ADDRESS='' -e POOL_PASSWORD='' -e POOL_ADDRESS='' --name xmr-stak-cpu baseboxorg/alpine-xmr-stak-cpu

You can also use (for example)

-e THREAD_CONFIG='{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 0 },{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 1 },{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 3 },{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 4 },'

by default the image starts up a number of threads equivalent to core count, which works best when you have for example 2 physical processors, and the (L3 cache/2) is higher than core count on one processor.

THREAD_CONFIG="" env variable can be used to manually define cpu config.

You can set all config.txt GitHub variables as docker run environment variables. Just use all caps in env var names.

Large pages need a properly set up OS. Run this on host side.

sudo sysctl -w vm.nr_hugepages=128 && ulimit -l 262144 

Fetch logs of a container:

$ docker logs --tail 1000 -f xmr-stak-cpu

Donations

Donations for work on dockerizing are accepted at:

  • XMR minecoins: 49TfoHGd6apXxNQTSHrMBq891vH6JiHmZHbz5Vx36nLRbz6WgcJunTtgcxnoG6snKFeGhAJB5LjyAEnvhBgCs5MtEgML3LU
  • XMR baseboxorg: 4446nVBcqNvbAxRU3XBLiSVq1DuSohG8q6n9n7rhAMBiW88LeoMmHPnbcYxDgdSfCCgG3xW9zfhCQDnQRFNjwt1X3AyifpJ
  • XMR neffets: 44aEKfjyBVDcTBech3pjF5ZJd8w82FxWCXG319nJVRzmRCWLZQfWVwPRJBNFXm7WTHinTu2Wz166k2niYRkmAyTaSPYNtv4

Thanks!

This is a fork from Minecoins/docker-xmr-stak-cpu docker image, thanks to Minecoins, and with added env variable support by baseboxorg!

docker-xmr-stak-cpu's People

Contributors

baseboxorg avatar timonmat avatar mjrsnyder avatar

Watchers

James Cloos avatar  avatar

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.