
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
amd64/busybox是https://hub.docker.com/_/busybox%E7%9A%84%60amd64%60%E6%9E%B6%E6%9E%84%E4%B8%93%E7%94%A8%E4%BB%93%E5%BA%93%E3%80%82BusyBox%E8%A2%AB%E8%AA%89%E4%B8%BA%22%E5%B5%8C%E5%85%A5%E5%BC%8FLinux%E7%9A%84%E7%91%9E%E5%A3%AB%E5%86%9B%E5%88%80%22%EF%BC%8C%E6%98%AF%E4%B8%80%E4%B8%AA%E9%9B%86%E6%88%90%E4%BA%86%E5%A4%9A%E7%A7%8D%E5%B8%B8%E8%A7%81UNIX%E5%B7%A5%E5%85%B7%E7%9A%84%E5%B0%8F%E5%9E%8B%E5%8F%AF%E6%89%A7%E8%A1%8C%E6%96%87%E4%BB%B6%EF%BC%8C%E7%A3%81%E7%9B%98%E5%A4%A7%E5%B0%8F%E9%80%9A%E5%B8%B8%E5%9C%A81-5MB%E4%B9%8B%E9%97%B4%EF%BC%88%E5%8F%96%E5%86%B3%E4%BA%8E%E5%8F%98%E4%BD%93%EF%BC%89%EF%BC%8C%E9%9D%9E%E5%B8%B8%E9%80%82%E5%90%88%E6%9E%84%E5%BB%BA%E7%A9%BA%E9%97%B4%E9%AB%98%E6%95%88%E7%9A%84%E5%AE%B9%E5%99%A8%E5%8F%91%E8%A1%8C%E7%89%88%E3%80%82
注意:有关非amd64架构的信息,参见https://github.com/docker-library/official-images#architectures-other-than-amd64%EF%BC%9B%E6%9C%89%E5%85%B3%E9%95%9C%E5%83%8F%E6%BA%90%E7%A0%81%E5%8F%98%E6%9B%B4%E7%9A%84%E8%AF%B4%E6%98%8E%EF%BC%8C%E5%8F%82%E8%A7%81https://github.com/docker-library/faq#an-images-source-changed-in-git-now-what%E3%80%82
ls、cp、sh、grep等)整合为单个小型可执行文件| 标签 | Dockerfile链接 |
|---|---|
1.37.0-glibc, 1.37-glibc, 1-glibc, unstable-glibc, glibc | https://github.com/docker-library/busybox/blob/e5b5178110ca0332364a77d5eb4fff87b0e2ba3f/latest/glibc/amd64/index.json |
1.37.0-uclibc, 1.37-uclibc, 1-uclibc, unstable-uclibc, uclibc | https://github.com/docker-library/busybox/blob/e5b5178110ca0332364a77d5eb4fff87b0e2ba3f/latest/uclibc/amd64/index.json |
1.37.0-musl, 1.37-musl, 1-musl, unstable-musl, musl | https://github.com/docker-library/busybox/blob/e5b5178110ca0332364a77d5eb4fff87b0e2ba3f/latest/musl/amd64/index.json |
1.37.0, 1.37, 1, unstable, latest | https://github.com/docker-library/busybox/blob/e5b5178110ca0332364a77d5eb4fff87b0e2ba3f/latest/glibc/amd64/index.json |
1.36.1-glibc, 1.36-glibc, stable-glibc | https://github.com/docker-library/busybox/blob/e5b5178110ca0332364a77d5eb4fff87b0e2ba3f/latest-1/glibc/amd64/index.json |
1.36.1-uclibc, 1.36-uclibc, stable-uclibc | https://github.com/docker-library/busybox/blob/e5b5178110ca0332364a77d5eb4fff87b0e2ba3f/latest-1/uclibc/amd64/index.json |
1.36.1-musl, 1.36-musl, stable-musl | https://github.com/docker-library/busybox/blob/e5b5178110ca0332364a77d5eb4fff87b0e2ba3f/latest-1/musl/amd64/index.json |
1.36.1, 1.36, stable | https://github.com/docker-library/busybox/blob/e5b5178110ca0332364a77d5eb4fff87b0e2ba3f/latest-1/glibc/amd64/index.json |
通过以下命令启动交互式BusyBox shell:
console$ docker run -it --rm amd64/busybox
此命令会启动一个临时容器并进入sh shell,退出后容器自动删除(--rm参数)。
对于静态编译的应用,可使用BusyBox作为基础镜像构建极小镜像。创建Dockerfile如下:
dockerfileFROM amd64/busybox COPY ./my-static-binary /my-static-binary CMD ["/my-static-binary"]
说明:需确保my-static-binary是静态编译的(无动态依赖),可通过ldd my-static-binary验证(输出"not a dynamic executable"表示静态编译)。
amd64/busybox提供三种libc变体,适应不同兼容性和大小需求:
amd64/busybox:glibcamd64/busybox:uclibcamd64/busybox:muslhttps://github.com/docker-library/busybox
https://github.com/docker-library/busybox/issues?q=
amd64、arm32v5、arm32v6、arm32v7、arm64v8、i386、ppc64le、riscv64、s390xBusyBox的许可证信息参见官方页面。
与所有Docker镜像一样,本镜像可能包含其他软件(如基础发行版的Bash等),这些软件可能具有独立许可证。
自动检测的许可证信息可在https://github.com/docker-library/repo-info/tree/master/repos/busybox%E4%B8%AD%E6%89%BE%E5%88%B0%E3%80%82
使用责任:镜像用户需自行确保其使用符合所有包含软件的相关许可证要求。
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务
以下是 amd64/busybox 相关的常用 Docker 镜像,适用于 不同场景 等不同场景: