
library/alpine
这是一款基于轻量级Alpine Linux构建的最小化Docker镜像,它不仅包含完整的软件包索引以确保用户能便捷获取所需依赖,而且体积仅为5MB,能极大节省存储空间与网络传输资源,非常适合对资源占用有严格要求的容器化应用场景,为快速部署和高效运行提供了轻量可靠的基础环境。
让 AI 帮你使用轩辕镜像? · 展开查看说明 · 点击收起说明
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Quick reference
-
Maintained by:
https://github.com/alpinelinux/docker-alpine (an Alpine Linux maintainer) -
Where to get help:
https://dockr.ly/comm-slack, Server Fault, https://unix.stackexchange.com/help/on-topic, or https://stackoverflow.com/help/on-topic
Supported tags and respective Dockerfile links
-
https://github.com/alpinelinux/docker-alpine/blob/c5f299db02fde44c***e2161773e1daebe581/x86_64/Dockerfile
-
https://github.com/alpinelinux/docker-alpine/blob/398ff0c866d27e9f46f53e48184fe36c674b8897/x86_64/Dockerfile
-
https://github.com/alpinelinux/docker-alpine/blob/4ad948cca27e7a605aa63ae1c59c22081a2c6d13/x86_64/Dockerfile
-
https://github.com/alpinelinux/docker-alpine/blob/aff8a4cfde38012a59285f21c8820777acd6033b/x86_64/Dockerfile
-
https://github.com/alpinelinux/docker-alpine/blob/52e3f9384ecbfe80a2d36bb344e464c0cf7c7507/x86_64/Dockerfile
Quick reference (cont.)
-
Where to file issues:
https://github.com/alpinelinux/docker-alpine/issues?q= -
Supported architectures: (https://github.com/docker-library/official-images#architectures-other-than-amd64)
https://hub.docker.com/r/amd64/alpine/, https://hub.docker.com/r/arm32v6/alpine/, https://hub.docker.com/r/arm32v7/alpine/, https://hub.docker.com/r/arm64v8/alpine/, https://hub.docker.com/r/i386/alpine/, https://hub.docker.com/r/ppc64le/alpine/, https://hub.docker.com/r/riscv64/alpine/, https://hub.docker.com/r/s390x/alpine/ -
Published image artifact details:
https://github.com/docker-library/repo-info/blob/master/repos/alpine (https://github.com/docker-library/repo-info/commits/master/repos/alpine)
(image metadata, transfer size, etc) -
Image updates:
https://github.com/docker-library/official-images/issues?q=label%3Alibrary%2Falpine
https://github.com/docker-library/official-images/blob/master/library/alpine (https://github.com/docker-library/official-images/commits/master/library/alpine) -
Source of this description:
https://github.com/docker-library/docs/tree/master/alpine (https://github.com/docker-library/docs/commits/master/alpine)
What is Alpine Linux?
https://alpinelinux.org/ is a Linux distribution built around https://www.musl-libc.org/ and https://www.busybox.net/. The image is only 5 MB in size and has access to a https://pkgs.alpinelinux.org/ that is much more complete than other BusyBox based images. This makes Alpine Linux a great image base for utilities and even production applications. https://alpinelinux.org/about/ and you can see how their mantra fits in right at home with Docker images.
!https://raw.githubusercontent.com/docker-library/docs/781049d54b1bd9b26d7e8ad384a92f7e0dcb0894/alpine/logo.png
How to use this image
Usage
Use like you would any other base image:
dockerfileFROM alpine:3.14 RUN apk add --no-cache mysql-client ENTRYPOINT ["mysql"]
This example has a virtual image size of only 36.8MB. Compare that to our good friend Ubuntu:
dockerfileFROM ubuntu:20.04 RUN apt-get update \ && apt-get install -y --no-install-recommends mysql-client \ && rm -rf /var/lib/apt/lists/* ENTRYPOINT ["mysql"]
This yields us a virtual image size of about 145MB image.
License
View https://pkgs.alpinelinux.org for the software contained in this image.
As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).
Some additional license information which was able to be auto-detected might be found in https://github.com/docker-library/repo-info/tree/master/repos/alpine.
As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
Deployment & Usage Documentation
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
DockerHub 原生拉取命令
镜像拉取常见问题
功能
错误码
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务