
如果你使用 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://img.shields.io/docker/stars/patsissons/xmr-stak.svg](https://hub.docker.com/r/patsissons/xmr-stak/) https://img.shields.io/docker/pulls/patsissons/xmr-stak.svg](https://hub.docker.com/r/patsissons/xmr-stak/) https://img.shields.io/docker/cloud/build/patsissons/xmr-stak.svg](https://hub.docker.com/r/patsissons/xmr-stak/builds) https://images.microbadger.com/badges/image/patsissons/xmr-stak.svg](https://microbadger.com/images/patsissons/xmr-stak)
https://github.com/fireice-uk/xmr-stak docker image that can mine CPU, AMD, and NVIDIA at the same time. One mining container to rule them all!
latest: the latest stable versiondevelop: the latest testing version (may not be stable). A new version of xmr-stak will start here and typically migrate shortly to beta.experimental: a completely untested version running an experimental buildbeta: the next upcoming release version. A develop version will migrate here, and typically migrate shortly to latest.xmr-stak buildbashdocker run --runtime=nvidia --device=/dev/dri --device=/dev/kfd --group-add=video -it -d --name xmr-stak -p 8000:8000 -v xmr-stak-config:/config patsissons/xmr-stak:develop -o ca.minexmr.com:5555 -u 47NHecs6qjvDcbx3eW6cDGDwdm3gDqbHs7G8hzPYRxf3YRTcDJw8kXhDxfHinsjHUwVwdFusSn76UHkaz68KurUgHvFmPMH.github-xmr-stak -p x --currency monero --httpd 8000
sudo ./start-xmr-stak.sh will pull down the latest version while still mining, then stop and upgrade the container to resume mining with minimal downtime. If you want to use this script with the latest develop builds, run sudo ./start-xmr-stak.sh develop instead. The script is ready to accept overrides for a few environment variables to simplify multi-host distribution.| Environment Variable | Default Value | Notes |
|---|---|---|
ADDRESS | N/A | make sure to replace the default with your own address or you will be mining to my address |
HOST | hostname -s | override this if you want a custom host name that is different from your actual host name |
PORT | 8000 | if another container or process is already using port 8000 this can be adjusted |
POOL_HOST | N/A | make sure to replace this with your own pool remote uri |
POOL_USER | $ADDRESS.$HOST-$TAG | adjust this to your needs |
POOL_PASS | x | adjust this to your needs |
CURRENCY | monero | adjust this to your needs |
Everything has been tested on http://archive.ubuntu.com/ubuntu/dists/xenial/main/installer-amd64/current/images/netboot/mini.iso, but may also possibly work on http://archive.ubuntu.com/ubuntu/dists/bionic/main/installer-amd64/current/images/netboot/mini.iso. For the most stable results, try and ensure your docker container environments match the host environment, especially for driver versions.
AMD requires only drivers installed on the host to interact with the hardware.
amdgpu-pro
You need to have installed the https://www.amd.com/en/support/kb/release-notes/rn-rad-lin-18-50-unified on the host machine and then run the docker image with --device=/dev/dri --device=/dev/kfd --group-add=video.
Testing
amdgpu-pro host driver installation./opt/amdgpu-pro/bin/clinfo
docker run -it --rm --device=/dev/dri --device=/dev/kfd --group-add=video --entrypoint=/bin/sh patsissons/xmr-stak -c /opt/amdgpu-pro/bin/clinfo
NVIDIA requires both a docker runtime and cuda drivers installed on the host to interact with the hardware.
nvidia-docker
You need to have already installed https://github.com/NVIDIA/nvidia-docker to enable passthru on the nvidia card(s). You will also need to have the https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64 installed. Run the docker container with --runtime=nvidia to enable the NVIDIA passthrough.
cuda-drivers
Installing cuda drivers on https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1804&target_type=debnetwork is the easiest way to get things going. You can install the drivers with apt-get install --no-install-recommends cuda-drivers. Make sure to reboot after installing new drivers.
Testing
cuda-drivers host driver installation./usr/bin/nvidia-smi
docker run -it --rm --runtime=nvidia --entrypoint=/bin/sh patsissons/xmr-stak -c /usr/bin/nvidia-smi
If you find this docker image useful, ***s for work on dockerizing mining app are appreciated at any of the following addresses:
1LNY9wSPs913Y9jXMTrrVze1E41nhm6Qv7LhnwdbrnQaQbjDkqxXFmxXGPcFhMBA9gFu47NHecs6qjvDcbx3eW6cDGDwdm3gDqbHs7G8hzPYRxf3YRTcDJw8kXhDxfHinsjHUwVwdFusSn76UHkaz68KurUgHvFmPMH您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务