
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
!https://github.com/Gershon-A/docker-trexminer/actions/workflows/docker-image.yml/badge.svg https://github.com/Gershon-A/docker-trexminer/actions/workflows/docker-publish.yml/badge.svg?event=push](https://github.com/Gershon-A/docker-trexminer/actions/workflows/docker-publish.yml)
Original repository https://github.com/trexminer/T-Rex
This image build T-Rex CUDA miner t-rex-0.26.8 from [***] top on nvidia/cuda:11.8.0-base-ubuntu22.04.
It requires a CUDA compatible docker implementation so you should probably go
for [nvidia-docker].
Originally, this docker image madded for use with Kubernetes for https://github.com/Gershon-A/AWS-EKS-Cluster-with-GPU-instances-and***s project and not tested locally.
https://hub.docker.com/r/gershona/t-rex
git clone git remote add origin https://github.com/Gershon-A/docker-trexminer.git cd docker-trexminer docker build -t cuda-t-rex:latest .
docker tag cuda-t-rex:latest docker.domain.com/mining/cuda-t-rex:latest docker push docker.domain.com/mining/cuda-t-rex:latest
nvidia-docker pull gershona/cuda-t-rex:latest nvidia-docker run -it --rm gershona/cuda-t-rex:latest /root/t-rex --help
An example command line to mine using ethermine.org on [***] (on my account, you can use it to actually mine something for real if you haven't choose your pool yet):
export SERVER=us1.ethermine.org export ETH_ADDRESS=0x1Fa418c70C5f14b21D00c242Bf369A875F129d12 export WORKER_NAME=my-worker nvidia-docker run -it --rm --name cuda-t-rex gershona/cuda-t-rex:latest /root/t-rex -a ethash -o stratum+tcp://$SERVER:4444 -u $ETH_ADDRESS -p x -w $WORKER_NAME
Ouput will looks like:
t-rex 20210109 12:15:02 T-Rex NVIDIA GPU miner v0.19.5 - [CUDA v11.10 | Linux] t-rex 20210109 12:15:02 r.5f0b2f67355c t-rex 20210109 12:15:02 t-rex 20210109 12:15:02 NVIDIA Driver v450.51.06 t-rex 20210109 12:15:02 CUDA devices available: 1 t-rex 20210109 12:15:02 t-rex 20210109 12:15:02 WARN: DevFee 1% (ethash) t-rex 20210109 12:15:02 t-rex 20210109 12:15:02 URL : stratum+tcp://us1.ethermine.org:4444 t-rex 20210109 12:15:02 USER: 0x1Fa418c70C5f14b21D00c242Bf369A875F129d12 t-rex 20210109 12:15:02 PASS: x t-rex 20210109 12:15:02 WRK : Gershon-t-rex t-rex 20210109 12:15:02 t-rex 20210109 12:15:02 Starting on: us1.ethermine.org:4444 t-rex 20210109 12:15:02 Using protocol: stratum1. t-rex 20210109 12:15:02 Authorizing... t-rex 20210109 12:15:02 Authorized successfully. t-rex 20210109 12:15:02 ethash epoch: 387, block: 11620479, diff: 4.00 Gh t-rex 20210109 12:15:02 ApiServer: HTTP server started on 0.0.0.0:4067 t-rex 20210109 12:15:02 -------------------------------------------------------- t-rex 20210109 12:15:02 For control navigate to: http://192.168.14.229:4067/trex t-rex 20210109 12:15:02 --------------------------------------------------------
You can check the output using docker logs cuda-t-rex -f
You can check CUDA usage enter to running container and run nvidia-smi there:
nvidia-smi Sat Jan 9 12:17:02 2021 +-----------------------------------------------------------------------------+ | NVIDIA-SMI 450.51.06 Driver Version: 450.51.06 CUDA Version: 11.1 | |-------------------------------+----------------------+----------------------+ | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC | | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. | | | | MIG M. | |===============================+======================+======================| | 0 Tesla M60 Off | 00000000:00:1E.0 Off | 0 | | N/A 49C P0 73W / 150W | 7618MiB / 7618MiB | 100% Default | | | | N/A | +-------------------------------+----------------------+----------------------+ +-----------------------------------------------------------------------------+ | Processes: | | GPU GI CI PID Type Process name GPU Memory | | ID ID Usage | |=============================================================================| +-----------------------------------------------------------------------------+
ETH: ***
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务