Miner for monero with very high performance thanks to xmrig (RandomX algorithm)
1M+

To quickly get started running a 24/7 monero Miner, just adapt this command with your information :
docker run -itd --restart=always -e POOL_URL=pool.supportxmr.com:5555 -e POOL_USER=45rfqYG9iNPddvenLpjFskJUhFgqBkdhDeah3X8D8ZJM3KpKqZWCLz3ewLsVd269tZiEyQRV53Ldv2DJb6xeuFokF7SBb1p --name monero pmietlicki/monero-miner
You can also use config json file by putting it inside /home/miner/config/config.json
To generate a config file, you can use the generator.
For example, if the config.json file is inside the /home/user/xmrig/ folder, use this command :
docker run -v /home/user/xmrig/config.json:/home/miner/config/config.json pmietlicki/monero-miner /home/miner/xmrig/build/xmrig \
--config /home/miner/config/config.json
Only 2 config variables are mandatory : POOL_URL and POOL_USER
| Environment | Description | Default value |
|---|---|---|
| POOL_USER | Wallet Address | 45rfqYG9iNPddvenLpjFskJUhFgqBkdhDeah3X8D8ZJM3KpKqZWCLz3ewLsVd269tZiEyQRV53Ldv2DJb6xeuFokF7SBb1p |
| POOL_URL | URL of mining server | pool.supportxmr.com:5555 |
| MAX_CPU* | Set the max CPU usage | 100 |
| USE_SCHEDULER | Enable / Disable (true/false) | false |
| START_TIME* | Set the start time of the scheduler if enabled | 2100 |
| STOP_TIME* | Sets the end time of the scheduler if enabled | 0600 |
| DAYS | Set the start days that the container should run, works together with START_TIME | Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday |
Note for MAX_CPU: This option just change the thread count. If you have just one core, it will use one thread, so it will be always 100% For 2 cores, minimum is 50% For 4, 25%.
Note for Time: Default Timezone is GMT +0
Use your own configuration.
docker run -d --name monero-miner pmietlicki/monero-miner -e POOL_URL=pool.supportxmr.com:5555 -e POOL_USER=45rfqYG9iNPddvenLpjFskJUhFgqBkdhDeah3X8D8ZJM3KpKqZWCLz3ewLsVd269tZiEyQRV53Ldv2DJb6xeuFokF7SBb1p
Advanced
You can customize xmrig options.
docker run pmietlicki/monero-miner /home/miner/xmrig/build/xmrig \
-o <POOL_URL> \
-u <POOL_USER> \
-k \
--cpu-priority=2
docker run -v /home/user/xmrig/config.json:/home/miner/config/config.json pmietlicki/turtle-miner /home/miner/xmrig/build/xmrig \
--config /home/miner/config/config.json
Docker compose
version: "3"
services:
monero-miner:
image: pmietlicki/monero-miner
environment:
- POOL_URL=pool.supportxmr.com:5555
- POOL_USER=45rfqYG9iNPddvenLpjFskJUhFgqBkdhDeah3X8D8ZJM3KpKqZWCLz3ewLsVd269tZiEyQRV53Ldv2DJb6xeuFokF7SBb1p
restart: on-failure
You will then have a running monero miner that uses all the available resources for mining.
For a container that will only run the miner on weekend days.
sudo docker run -itd -e POOL_URL='pool.supportxmr.com:5555' -e POOL_USER='{YOUR_WALLET_ID}' -e USE_SCHEDULER='true' -e START_TIME='0001' -e STOP_TIME='2359' -e DAYS='Saturday,Sunday' pmietlicki/monero-miner
It could be interesting to power on a miner during off-work time. The example bellow will fire the miner everyday from 21.00-06.00.
sudo docker run -itd -e POOL_URL='pool.supportxmr.com:5555' -e POOL_USER='{YOUR_WALLET_ID}' -e USE_SCHEDULER='true' -e START_TIME='2100' -e STOP_TIME='0600' -e DAYS='Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday' pmietlicki/monero-miner
If you want to achieve a complex time scheduling to maximize your profit. Let's setup a schedule that works from monday - friday (21.00-06.00) and on saturday & sunday the entire day. To achieve this requirement we have to create two containers, one for the working days and one for the weekend.
docker run -itd -e POOL_URL='pool.supportxmr.com:5555' -e POOL_USER='{YOUR_WALLET_ID}' -e USE_SCHEDULER='true' -e START_TIME='2100' -e STOP_TIME='0600' -e DAYS='Monday,Tuesday,Wednesday,Thursday' pmietlicki/monero-miner
sudo docker run -itd -e POOL_URL='pool.supportxmr.com:5555' -e POOL_USER='{YOUR_WALLET_ID}' -e USE_SCHEDULER='true' -e START_TIME='0001' -e STOP_TIME='2359' -e DAYS='Saturday,Sunday' pmietlicki/monero-miner
To see the output from the miner, run one of:
$ docker logs -t -f monero
$ docker-compose logs
To update the miner:
$ docker stop monero
$ docker rm monero
$ docker pull pmietlicki/monero-miner
$ docker run -d --mount ...
To stop the miner:
$ docker stop monero
$ docker-compose stop
To restart the miner:
$ docker restart monero
$ docker-compose restart
$ cd src/miner
$ docker build -t pmietlicki/monero-miner .
45rfqYG9iNPddvenLpjFskJUhFgqBkdhDeah3X8D8ZJM3KpKqZWCLz3ewLsVd269tZiEyQRV53Ldv2DJb6xeuFokF7SBb1pRG8Foh71fzgbrczHbUJSdWna6u4e7sgsr6bc1q8x59fwt7v9w3haa8dc5jtaurs3azjq2ut5nekpNQ51BJ7CGJA4Y35XNL7KL9VVVYQNA0K76FMBContent type
Image
Digest
sha256:75090888b…
Size
11.3 MB
Last updated
about 4 hours ago
docker pull pmietlicki/monero-miner