Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kriation/docker-ethminer
A docker container with a CUDA enabled build of ethminer
https://github.com/kriation/docker-ethminer
docker-nvidia ethereum ethminer gpu-mining nvidia-cuda nvidia-docker
Last synced: 14 days ago
JSON representation
A docker container with a CUDA enabled build of ethminer
- Host: GitHub
- URL: https://github.com/kriation/docker-ethminer
- Owner: kriation
- License: gpl-3.0
- Archived: true
- Created: 2021-01-23T19:24:56.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-28T16:52:22.000Z (about 3 years ago)
- Last Synced: 2024-08-01T15:36:31.844Z (4 months ago)
- Topics: docker-nvidia, ethereum, ethminer, gpu-mining, nvidia-cuda, nvidia-docker
- Language: Dockerfile
- Homepage:
- Size: 25.4 KB
- Stars: 2
- Watchers: 0
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/ethereum-mining/ethminer/blob/master/docs/BUILD.md)
of the repository to put this image together.## Tip Jar
If you're using this container image, tips in eth are appreciated! :bowtie:
**0xAe26Cd1573745236807E67cE3be34Ca4226f4cF3**![eth address QR code](eth.png)
## Overview
To minimize the complexity of pulling in the required dependencies and
minimizing the size of the image, I use the
nvidia/cuda devel image to build the ethminer binary. In the second
stage, I copy the build artifacts to a new image dependent on
nvidia/cuda runtime.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-devicesethminer 0.19.0+commit.47ae149e
Build: linux/release/gnuId 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](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/user-guide.html)
from NVIDIA on setting the toolkit up is straightforward.## Build
For those interested in building a custom image that isn't available in Docker
Hub, you can pass a build argument of CUDA_VERSION set to any of the tags
listed in the [CUDA Supported Tags](https://gitlab.com/nvidia/container-images/cuda/blob/master/doc/supported-tags.md) documentation.An example is below:
```
$ docker build --build-arg CUDA_VERSION=10.0 -t kriation/ethminer:10.0 .
```The resulting image will be based off of the CUDA 10.0 base.