docker run -d --name miner xmrig
docker run -d --name miner \
-e WALLET="your_xmr_wallet_address" \
-e POOL="gulf.moneroocean.stream:20128" \
-e TLS="true" \
-e WORKER="my-miner-01" \
-e THREADS=25 \
-e PRIORITY=0 \
-e YIELD=true \
xmrig
docker run -d --name miner \
--cpus="2.0" \
--cpu-shares=512 \
-e WALLET="your_xmr_wallet_address" \
-e POOL="gulf.moneroocean.stream:20128" \
-e TLS="true" \
-e WORKER="my-miner-01" \
-e THREADS=25 \
-e PRIORITY=0 \
-e YIELD=true \
xmrig
docker logs -f miner
| Variable | Description |
|---|---|
WALLET | Your XMR wallet address |
POOL | Pool URL in host:port format |
TLS | Enable TLS — true or false |
WORKER | Worker/rig name shown on pool dashboard. Defaults to container hostname if not set |
THREADS | Percentage of CPU threads to use (1–100) |
PRIORITY | OS scheduling priority — 0 = idle, 5 = highest. Recommended: 0 |
YIELD | Yield CPU to other processes — true or false. Recommended: true |
If not set, values from config.json are used.
| Flag | Example | Description |
|---|---|---|
--cpus | 2.0 | Hard cap on number of cores |
--cpu-shares | 512 | Scheduling weight (default 1024, lower = less priority) |
Using PRIORITY=0 + YIELD=true + --cpu-shares=512 together gives two layers of protection to prevent the miner from hogging resources from other containers or VMs.
| Port | TLS |
|---|---|
10128 | No |
20128 | Yes |
docker stop miner
docker rm miner
Content type
Image
Digest
sha256:89d11f96e…
Size
11.8 MB
Last updated
4 months ago
docker pull garfieldwtf/xmrig