
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
This allows you to mount a git repo as a volume in the container and manage it with https://github.com/StackExchange/blackbox/ and your host machine's ~/.ssh and ~/.gnupg directories.
In the Makefile there are commands for both building and pushing the image to https://hub.docker.com/.
sh# Builds an image named 'stevenaldinger/docker-blackbox:latest' make build \ dockerhub_user='stevenaldinger' \ version="latest"
sh# Pushes an image to 'stevenaldinger/docker-blackbox:latest' make push \ dockerhub_user='stevenaldinger' \ version="latest"
In general, when you run this docker image it will set your git user name/email, make sure the gpg agent is running, and create a directory named .blackbox if it doesn't already exist in the directory mounted at /repo to store your https://github.com/StackExchange/blackbox#enabling-blackbox-for-a-repo in. Then it will run any command you pass in.
cd into the git repo you want to manage with the image.Then run the container as a daemon:
shdocker run --rm --name blackbox \ -e GIT_USER_NAME="$(git config --get user.name)" \ -e GIT_USER_EMAIL="$(git config --get user.email)" \ -v $(pwd)/:/repo/ \ -v "$HOME/.ssh":/root/.ssh \ -v "$HOME/.gnupg":/root/.gnupg \ -d stevenaldinger/docker-blackbox:latest \ tail -f /dev/null
cd into docker-blackbox/examples/shexport GPG_KEY_EMAIL_ADDRESS='me@stevenaldinger.com'
BlackBox admin..env file..env file..env file.docker kill blackbox to finish up.The docker-compose.yml configuration runs tail -f /dev/null inside the container to keep it running and then the example files can be used to execute BlackBox commands inside the container.
For an example of how this https://hub.docker.com/r/stevenaldinger/docker-blackbox/tags/ works:
sh# used in the docker-compose.yml file export GIT_USER_EMAIL="stevenaldinger@gmail.com" export GIT_USER_NAME="Steven Aldinger" # used in some of the example scripts export GPG_KEY_EMAIL_ADDRESS='me@stevenaldinger.com'
docker-compose up -dstevenaldinger/docker-blackbox:latest container named blackbox./example-repo on the host machine for usage the example scriptsExample Scripts
A directory of example scripts can be found at examples/ and include:
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务