如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这段话即可:
请先阅读并遵守:https://xuanyuan.cloud/agents.md
未读文档前不要生成 pull 命令或排错方案。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Layer 4 proxy server, Powered by Caddy.
Solving git@github.com network problem in this case.
** Private key will send to mirror server, deploy server by yourself**
docker run --name caddy-l4 -dp 2201:2201 initdc/caddy-l4:latest
You need set private key and port for ssh
sh# ~/.ssh/config Host github.com Hostname github.com IdentityFile ~/.ssh/id_ed25519_github User git Host localhost Hostname localhost IdentityFile ~/.ssh/id_ed25519_github Port 2201 User git # ssh.example.com Host ssh.example.com Hostname ssh.example.com IdentityFile ~/.ssh/id_ed25519_github User git
ssh -T -p 2201 git@localhost
git clone git@localhost:initdc/Hello_World.git
change buildx DRIVER from docker to [ docker-container or kubernetes ]
shdocker buildx create --name mycontext1 --driver docker-container --use --bootstrap # or docker buildx create --name mycontext1 --driver kubernetes --use --bootstrap
refs:
[***]
https://github.com/docker/buildx/blob/master/docs/reference/buildx_create.md
local
docker buildx build -t caddy-l4:amd64 . --load
docker buildx build --platform linux/arm64 -t caddy-l4:arm64 . --load
-tfor local tag:name:arch
for pushing
docker buildx build --platform linux/amd64,linux/arm64,linux/riscv64,linux/ppc64le,linux/s390x,linux/386,linux/mips64le,linux/mips64,linux/arm/v7,linux/arm/v6 -t initdc/caddy-l4:v$(TZ=Asia/Shanghai date +%Y.%m.%d) . --push
latest->v$(TZ=Asia/Shanghai date +%Y.%m.%d)
replace
initdcwith your docker registry user name.
check full list with
docker buildx ls
https://docs.github.com/en/authentication/troubleshooting-ssh/using-ssh-over-the-https-port
https://github.com/mholt/caddy-l4
https://caddyserver.com/docs/modules/layer4
https://github.com/ghthor/caddy-l4-docker
MPL 2.0
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务