Docker container for Ethereum mining with CUDA.
Based on Anthony-Tatowicz/docker-ethminer.
Works with vast.ai on CUDA 11.2 and 11.4 instances.
Contains workarounds for:
Check the requirements:
- Ubuntu 20.04.* LTS.
- Nvidia drivers for your GPU, you can get them here: Nvidia drivers.
- Nvidia-docker (so docker can access your GPU) install instructions here: nvidia-docker.
Use the pre-built container: https://hub.docker.com/r/500farm/docker-ethminer.
Example:
$ nvidia-docker run -it 500farm/docker-ethminer ARG1 ARG2 ...
Example for ethermine.org:
$ nvidia-docker run -it 500farm/docker-ethminer \
-P stratum+tcp://<your_wallet_address>@eu1.ethermine.org:4444
Help:
$ nvidia-docker run -it 500farm/docker-ethminer -H
Following args are added automatically: -U --api-port -3333 --HWMON 2 --syslog. JSON RPC API is exposed in read-only mode on port 3333.
This image builds the latest master of https://github.com/ethereum-mining/ethminer.
docker build -t 500farm/docker-ethminer:<version> -t 500farm/docker-ethminer:latest .
docker push 500farm/docker-ethminer:<version>
docker push 500farm/docker-ethminer:latest