Alpine Docker Image
这是一款基于轻量级Alpine Linux构建的最小化Docker镜像,它不仅包含完整的软件包索引以确保用户能便捷获取所需依赖,而且体积仅为5MB,能极大节省存储空间与网络传输资源,非常适合对资源占用有严格要求的容器化应用场景,为快速部署和高效运行提供了轻量可靠的基础环境。
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/410e6fcf56b6bfd6e6b3acf0ab59a5ad1381ca54/x86_64/Dockerfile
-
https://github.com/alpinelinux/docker-alpine/blob/1c744e2d49059e51b063a11a6e3e18c9ccf04ab8/x86_64/Dockerfile
-
https://github.com/alpinelinux/docker-alpine/blob/00d3407329e4c65f237cc1e325a4ab0cb4974df4/x86_64/Dockerfile
-
https://github.com/alpinelinux/docker-alpine/blob/32cb3f1f45f4fee***c06a264eb9e5130fe/x86_64/Dockerfile
-
https://github.com/alpinelinux/docker-alpine/blob/45ca5a796a9e1c0b9de1e279514331000b7ff921/x86_64/Dockerfile
Quick reference (cont.)
-
Where to file issues:
https://github.com/alpinelinux/docker-alpine/issues?q=is:issue+is:pr -
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.
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.
library/alpine Related Documentation
(2 articles)镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
DockerHub 原生拉取命令
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务

