GithubHelp home page GithubHelp logo

docker-ethminer's Introduction

Ethereum CUDA Miner

Docker container for Ethereum mining with CUDA.

Simple and easy to run, if you have a Nvidia GPU and want to mine eth.

Note: This image builds ethminer, which is an activily maintained Genoil fork https://github.com/ethereum-mining/ethminer

Requirements

  • 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

How to run

$ nvidia-docker run -it anthonytatowicz/eth-cuda-miner ARG1 ARG2 ...

# Example
$ nvidia-docker run -it anthonytatowicz/eth-cuda-miner \
-S us-west1.nanopool.org:9999 \
-O <your_wallet_address>.<worker_name>/<your_email>

Note: -U is set by default

Note: Be sure to change the -O argument to your mining address and email.
The format goes like this "address.worker/email"

Help

$ etherminer --help

Questions?

You can leave a comment below or send an email to [email protected].
If this helped and you'd like to leave a tip --> 0x20ad58fe023265577565c7eb44b55c31e7497c33

docker-ethminer's People

Contributors

austinheap avatar nazar-pc avatar tatowicz avatar zmielna avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-ethminer's Issues

Cuda error in func 'set_constants' at line 134 : invalid device symbol.

I am using GeForce GTX 1080, but not working...

[CUDA]:Using grid size 8192, block size 128

  m  04:11:20|ethminer  Getting work package...
  m  04:11:20|ethminer  Grabbing DAG for #71a56fef…
  ℹ  04:11:31|ethminer  Loading full DAG of seedhash: #3a619bcc…
  m  04:11:31|ethminer  Got work package: #3579708e
  ℹ  04:11:31|cudaminer0  set work to #3579708e, target  #0000000112e0be82
  ℹ  04:11:31|cudaminer0  Initialising miner...
  m  04:11:31|ethminer  Mining on PoWhash #3579708e : 0.00MH/s [A0+0:R0+0:F0]
Using device: GeForce GTX 1080 (Compute 6.1)
  m  04:11:42|ethminer  Mining on PoWhash #3579708e : 0.00MH/s [A0+0:R0+0:F0]
  m  04:11:42|ethminer  Got work package: #467be9e0
Cuda error in func 'set_constants' at line 134 : invalid device symbol.

Out of memory error

Hi,

I am receiving this error
CUDA error in func 'init' at line 243 : out of memory.

When running the docker image as follows:
nvidia-docker run -it anthonytatowicz/eth-cuda-miner -M

If I run the follwoing it works and I get the output below:

nvidia-docker run -it anthonytatowicz/eth-cuda-miner --list-devices

`Genoil's ethminer 0.9.41-genoil-1.1.7

Forked from github.com/ethereum/cpp-ethereum
CUDA kernel ported from Tim Hughes' OpenCL kernel
With contributions from nicehash, nerdralph, RoBiK and sp_

Please consider a donation to:
ETH: 0xeb9310b185455f863f526dab3d245809f6854b4d

[CUDA]:
Listing CUDA devices.
FORMAT: [deviceID] deviceName
[0] GeForce GTX 1080
Compute version: 6.1
cudaDeviceProp::totalGlobalMem: 8504868864
`
Any idea what the issue might be referring to?

incorrect entrypoint on container?

FYI...got this when attempting to run current rev of container:

docker: Error response from daemon: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"exec: \\\"/cpp-ethereum/build/ethminer/ethminer\\\": stat /cpp-ethereum/build/ethminer/ethminer: no such file or directory\"\n".

overrode the entry point and looked around noted there's no /cpp-ethereum/ off of root, but there is an ethminer dir with the build hierarchy:

$ nvidia-docker run -it --entrypoint /bin/bash anthonytatowicz/eth-cuda-miner
root@24f2c1010ab0:/# cd ethminer/build/ethminer/
root@24f2c1010ab0:/ethminer/build/ethminer# ls
CMakeFiles Makefile cmake_install.cmake ethminer
root@24f2c1010ab0:/ethminer/build/ethminer# file ethminer
ethminer: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=79bb3400096742664566a1b762a19b2838722194, not stripped
root@24f2c1010ab0:/ethminer/build/ethminer# file /usr/local/bin/ethminer
/usr/local/bin/ethminer: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=79bb3400096742664566a1b762a19b2838722194, not stripped

Also found the one in /usr/local/bin which appears to be the same bin

Running the miner individually

Hey Anthony,
Great work here. I was trying to make this run on a my pretty big nvidia GPU's. I'm sorry I'm a beginner with this. I'm not sure what and how to use stratum. Is it required to use this? Can I run this individually?
I was trying:

$~  nvidia-docker run -it anthonytatowicz/eth-cuda-miner -O 0x311Ac4E60CD56CF19816fEbC4f7E9B77d36dE2b

 I get error: 
JSON-RPC problem. Probably couldn't connect. Retrying in 1...
^C
  m  04:24:41|ethminer  Getting work package...
  ✘  04:24:41|ethminer  Failed to submit hashrate.
  ✘  04:24:41|ethminer  Dynamic exception type: jsonrpc::JsonRpcException
std::exception::what: Exception -32003 : Client connector error: libcurl error: 7 -> Could not connect to http://127.0.0.1:8545

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.