
如果你使用 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/lncm/docker-tor/workflows/Docker%20build%20on%20push/badge.svg](https://github.com/lncm/docker-tor/actions?query=workflow%3A%22Docker+build+on+push%22) https://github.com/lncm/docker-tor/workflows/Docker%20build%20on%20tag/badge.svg](https://github.com/lncm/docker-tor/actions?query=workflow%3A%22Docker+build+on+tag%22) !https://img.shields.io/github/v/release/lncm/docker-tor?sort=semver !https://img.shields.io/docker/pulls/lncm/tor.svg?style=flat
Tor service as a docker container, supporting multiple platforms/architectures (armv6, armv7, arm64, amd64) the LNCM way (inclusive)
NOTE: For an always up-to-date list see: https://hub.docker.com/r/lncm/tor/tags
latest0.4.7.90.4.6.80.4.5.110.4.5.60.4.4.70.4.5.5-rc 0.4.5.3-rc0.4.4.5 0.4.4.60.4.4.4-rc 0.4.3.6The github action takes in the current tag from upstream and then fetches, verifies and compiles this.
To grab a new version simply just tag a new version
Example:
bashgit tag -s 0.4.7.9
Would Release 0.4.7.9 of tor.
As a maintainer, you should also update the documentation too.
Note In order to trigger builds This repository uses the following environment variables:
DOCKER_HUB_USER - the username for docker hubDOCKER_USERNAME - The username for dockerhub.DOCKER_PASSWORD - The password for dockerhubDOCKER_TOKEN - the token for docker hub which can push to this projecta (not used currently)GITHUB_TOKEN - The token of the current user (this is added automatically)GITHUB_ACTOR - The user to login to docker.pkg.github.comGITHUB_REPOSITORY - The repository pathname (used for the push to githubs package registry)this assumes
0.4.7.9version. But you can substitute this for others
To run this from the command line you would need to create an example https://github.com/torproject/tor/blob/master/src/config/torrc.sample.in or use the https://raw.githubusercontent.com/lncm/docker-tor/master/torrc-dist in this repo.
Then you would need to run:
bashdocker run --rm -d \ --network host \ --name tor \ -v $PWD/data:/etc/tor \ -v $PWD/data:/var/lib/tor \ -v $PWD/run:/var/run/tor \ lncm/tor:0.4.7.9
This assumes you have a directory called data and a directory called run in the current $PWD. And the config file torrc should live in data.
For your convenience, we have a https://github.com/lncm/docker-tor/blob/master/docker-compose.yml-dist file available for you to use too.
By default this uses host networking and requires data and run folders to be created and with a https://github.com/torproject/tor/blob/master/src/config/torrc.sample.in
bashdocker run --rm \ --name tor \ lncm/tor:0.4.7.8 \ --hash-password passwordtogenerate
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务