Sign inSign up

kimostberg/xmrig-docker

By kimostberg

Updated over 4 years ago

MultiArch docker Monero mining

Image
0

949

kimostberg/xmrig-docker repository overview

Docker Pulls

XMRig

This XMRig image is kept up to date with the latest updates and is custom built in an Alpine container for best performance and size.

This image will CPU mine very well on any Docker host including Azure and AWS.

If you are new to Monero mining and need a wallet/address see the official wallet client.

Getting Started

The most simple execution is:

docker run --restart=always kimostberg/xmrig-docker:latest -k --tls -o POOL:PORT -u USER -p PASSWORD 

An excellent Monero mining pool is MoneroOcean. To mine at MoneroOcean you use your monero wallet address as the username, and password is name of your rig.

For Example: (if you use this wallet address, you will donate your xmr to me)

docker run --restart=always kimostberg/xmrig-docker:latest -k --tls -o gulf.moneroocean.stream:10128 -u 42AZq3AokBL9saWqzvaXNmY2U7LtLSWDHGu3mKZdQNdxFH1kJ8eMC2LKFHu3kw99RhDhbQKJabn5eKnPs62HtXASQbYuVwJ -p docker

Running in Azure ACI

You can deploy directly to Azure Container Instances using our ARM template with the following button. This will be a single container, so you may want to modify the template to duplicate the container instances a few times.

Deploy to Azure

Or you can run manually using the native support in Docker Desktop for Windows/Mac.

You simply log Docker into Azure, create a context, and include the context on your normal run command.

Example:

docker login azure
docker context create aci myacicontext
docker --context myacicontext run kimostberg/xmrig-docker:latest -k --tls -o POOL:PORT -u USER -p PASSWORD 

Learn more at https://docs.docker.com/cloud/aci-integration/.

Running in AWS ECS

Running in ECS is similar to running in ACI. You can follow the instructions at: https://docs.docker.com/cloud/ecs-integration/

Improve performance on Linux hosts

By disabling prefetching you can see up to 30% performance gain. Usually XMRIG would do this automatically but it is not possible from inside the docker image.

You can run this command on the Linux host to use the XMRIG script to configure MSR (until next reboot):

sudo wget https://raw.githubusercontent.com/xmrig/xmrig/dev/scripts/randomx_boost.sh -v -O randomx_boost.sh; ./randomx_boost.sh; rm -rf randomx_boost.sh

Tag summary

Content type

Image

Digest

Size

181.1 MB

Last updated

over 4 years ago

docker pull kimostberg/xmrig-docker