alpine
Docker Official Image
·
1B+
·
10K+
A minimal Docker image based on Alpine Linux with a complete package index and only 5 MB in size!
Operating systems
Overview Tags
alpine Docker official image overview
Quick reference
Supported tags and respective Dockerfile links
Quick reference (cont.)
What is Alpine Linux?
Alpine Linux is a Linux distribution built around musl libc and BusyBox . The image is only 5 MB in size and has access to a package repository that is much more complete than other BusyBox based images. This makes Alpine Linux a great image base for utilities and even production applications. Read more about Alpine Linux here 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:
FROM 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:
FROM 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 license information 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 the repo-info repository's alpine/ directory .
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.
Tag summary
Recent tags
latest
- Content type
- Image
- Digest
- sha256:694479177...
- Size
- 3.7 MB
- Last updated
- 2 days ago
docker pull alpine:latest
This week's pulls
Pulls: 30,009,806
Last week
Learn more
About Official Images
Docker Official Images are a curated set of Docker open source and drop-in solution repositories.
Why Official Images?
These images have clear documentation, promote best practices, and are designed for the most common use cases.