STH Monero Cryptonight and Aeon Docker Mining Images Updated

0
Monero Logo With Xeon E5 Series
Monero Logo With Xeon E5 Series

Update 2018-03-31: Due to an xmrig bug fix, these images have been updated to xmrig 2.5.2. See Aeon and Monero Mining Docker Images Updated for Hard Fork for more information.

There is a major buzz in the community with the coming Monero hardfork. With ASIC miners being released, the Monero project, and several smaller projects are planning to change their proof of work (POW) algorithms in April 2018. As a result, we have updated our STH Monero mining docker images with the latest miners for the new POW algorithm.

Monero Mining in Docker

We have been supporting Monero mining in Docker containers since 2016. Since we started releasing our containers, they have been downloaded over 750,000 times according to Docker hub. During this time, we have made a number of improvements to our mining images such as:

  • Changing from a pool-specific to a pool agnostic image system
  • Supporting different architectures in a single image
  • Supporting automation and orchestration on largescale deployments
  • Supporting a proxy solution for large-scale deployments
  • Changing mining applications to newer miner versions

The new hardfork created an opportunity to roll out some changes. A few of these are:

  • Update to Xmrig 2.5.1 to support the hardfork
  • Update to Ubuntu 18.04 as the base platform
  • Updated gcc versions for compiling xmrig to 7.2 to align with 18.04
  • Streamline images

Once Monero or Cryptonight ASICs hit the market, the Monero team announced that their plan is to regularly change POW algorithms. The thought behind this is that updating the algorithms will slow ASIC deployments. Indeed, some have speculated that the massive jump in Monero and other cryptonight along with Aeon and cryptonight-lite mining difficulty has largely been due to ASICs mining for manufacturers. Otherwise, about as much capacity as several hundred thousand AMD Vega GPUs or several hundred million PCs running background tasks 24×7 would have been needed to boost the network hashrate by as much as it has over the past few months.

Updating Your Aeon and Monero Mining Containers

Going forward, we want to maintain fewer images. We now have a universal cryptonight and crytponight-lite mining container that can be used from single socket servers up to 8 socket (and potentially more) servers. The newer image can also use virtually any pool and mine a myriad of different types of cryptonight currencies such as Electroneum. The new universal image can also mine Aeon for cryptonight-light mining.

A few months ago we released a newer generation servetheheme/universal_cryptonight image that does everything in one go and is easy to automate using the command line or your favorite orchestration manager. Check the instructions here including a nice little launch script.

We are setting the cutoff at the three mining images that currently have over 100,000 pulls on Docker hub, plus the newer univeral image. We need to get image sprawl under control to maintain these going forward, and there is no longer a need for this many images with the new universal image.

If you are already using one of our containers, e.g. servethehome/universal_cryptonight, you can update to the newest miner by:

  1. Stopping the container (docker stop <container id>)
  2. Removing the older image (docker rmi servethehome/universal_cryptonight:latest)
  3. Pulling the newer image (docker pull servethehome/universal_cryptonight:latest)
  4. Restart containers

If you get an error on #2 you may need to remove the container first using the older image. That depends on how you launched the containers in the first instance. Step 3 keeps it clean, but once you remove the old image, the newer image will automatically download via docker.

Final Words

Looking forward, we will likely support the three largest images for the next few releases. Beyond that, we will be moving to the servethehome/universal_cryptonight image so that we can focus on bringing more automation features to the platform and ensure it is easier to maintain int he future.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.