Sign inSign up

amonra/ethminer

By amonra

•Updated over 5 years ago

Image
0

771

amonra/ethminer repository overview

⁠ethminer

This container is a CUDA enabled build of ethereum-mining/ethminer. It tracks the head of the master branch at build time. I used the guidance provided in the build.md⁠ of the repository to put this image together.

To minimize the complexity of pulling in the required dependencies and minimizing the size of the image, I use the nvidia/cuda:11-2.0-devel image to build the ethminer binary. In the second stage, I copy the build artifacts to a new image dependent on nvidia/cuda:11.2.0-runtime.

The final image size is ~2.03GB compared to ~4.71GB when using the nvidia development image.

The entrypoint for the final image is /opt/ethminer/ethminer.

This provides the ability to pass arguments at container execution time. For example:

$ docker run --gpus all -it kriation/ethminer:latest --list-devices


ethminer 0.19.0+commit.47ae149e
Build: linux/release/gnu

 Id Pci Id    Type Name                          CUDA SM   Total Memory
 --- --------- ---- ----------------------------- ---- ---  ------------
   0 01:00.0   Gpu  GeForce GTX 1660 SUPER        Yes  7.5       1.52 GB

The prerequisite to using this image is that the NVIDIA container toolkit is configured properly on the container host. The documentation⁠ from NVIDIA on setting the toolkit up is straightforward.

Tag summary

Content type

Image

Digest

Size

502.8 MB

Last updated

over 5 years ago

docker pull amonra/ethminer