debian
Estimated reading time: 5 minutesDebian is a Linux distribution that’s composed entirely of free and open-source software.
GitHub repo: https://github.com/debuerreotype/docker-debian-artifacts
Library reference
This content is imported from the official Docker Library docs, and is provided by the original uploader. You can view the Docker Store page for this image at https://store.docker.com/images/debian
Supported tags and respective Dockerfile
links
buster
,buster-20171009
(buster/Dockerfile)buster-slim
(buster/slim/Dockerfile)experimental
,experimental-20171009
(experimental/Dockerfile)jessie
,jessie-20171009
,8.9
,8
(jessie/Dockerfile)jessie-backports
(jessie/backports/Dockerfile)jessie-slim
(jessie/slim/Dockerfile)oldoldstable
,oldoldstable-20171009
(oldoldstable/Dockerfile)oldoldstable-backports
(oldoldstable/backports/Dockerfile)oldoldstable-slim
(oldoldstable/slim/Dockerfile)oldstable
,oldstable-20171009
(oldstable/Dockerfile)oldstable-backports
(oldstable/backports/Dockerfile)oldstable-slim
(oldstable/slim/Dockerfile)rc-buggy
,rc-buggy-20171009
(rc-buggy/Dockerfile)sid
,sid-20171009
(sid/Dockerfile)sid-slim
(sid/slim/Dockerfile)stable
,stable-20171009
(stable/Dockerfile)stable-backports
(stable/backports/Dockerfile)stable-slim
(stable/slim/Dockerfile)stretch
,stretch-20171009
,9.2
,9
,latest
(stretch/Dockerfile)stretch-backports
(stretch/backports/Dockerfile)stretch-slim
(stretch/slim/Dockerfile)testing
,testing-20171009
(testing/Dockerfile)testing-slim
(testing/slim/Dockerfile)unstable
,unstable-20171009
(unstable/Dockerfile)unstable-slim
(unstable/slim/Dockerfile)wheezy
,wheezy-20171009
,7.11
,7
(wheezy/Dockerfile)wheezy-backports
(wheezy/backports/Dockerfile)wheezy-slim
(wheezy/slim/Dockerfile)
Quick reference
-
Where to get help:
the Docker Community Forums, the Docker Community Slack, or Stack Overflow -
Where to file issues:
https://github.com/debuerreotype/docker-debian-artifacts/issues -
Supported architectures: (more info)
amd64
,arm32v5
,arm32v7
,arm64v8
,i386
,ppc64le
,s390x
-
Published image artifact details:
repo-info repo’srepos/debian/
directory (history)
(image metadata, transfer size, etc) -
Image updates:
official-images PRs with labellibrary/debian
official-images repo’slibrary/debian
file (history) -
Source of this description:
docs repo’sdebian/
directory (history) -
Supported Docker versions:
the latest release (down to 1.6 on a best-effort basis)
What is Debian?
Debian is an operating system which is composed primarily of free and open-source software, most of which is under the GNU General Public License, and developed by a group of individuals known as the Debian project. Debian is one of the most popular Linux distributions for personal computers and network servers, and has been used as a base for several other Linux distributions.
About this image
The debian:latest
tag will always point the latest stable release (which is, at the time of this writing, debian:stretch
). Stable releases are also tagged with their version (ie, debian:8
is an alias for debian:jessie
, debian:7
is an alias for debian:wheezy
, etc).
The rolling tags (debian:stable
, debian:testing
, etc) use the rolling suite names in their /etc/apt/sources.list
file (ie, deb http://deb.debian.org/debian testing main
).
The mirror of choice for these images is the deb.debian.org CDN pointer/redirector so that it’s as reliable as possible for the largest subset of users (and is also the default mirror for debootstrap
as of 2016-10-20). See the deb.debian.org homepage for more information.
If you find yourself needing a Debian release which is EOL (and thus only available from archive.debian.org), you should check out the debian/eol
image, which includes tags for Debian releases as far back as Potato (Debian 2.2), the first release to fully utilize APT.
Locales
Given that it is a faithful “minbase” install of Debian, this image only includes the C
, C.UTF-8
, and POSIX
locales by default. For most uses requiring a UTF-8 locale, C.UTF-8
is likely sufficient (-e LANG=C.UTF-8
or ENV LANG C.UTF-8
).
For uses where that is not sufficient, other locales can be installed/generated via the locales
package. PostgreSQL has a good example of doing so, copied below:
RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
ENV LANG en_US.utf8
How It’s Made
The rootfs tarballs for this image are built using the reproducible-Debian-rootfs tool, debuerreotype
, with an explicit goal being that they are transparent and reproducible. Using the same toolchain, it should be possible to regenerate (clean-room!) the same tarballs used for building the official Debian images.
Additionally, the scripts in https://github.com/debuerreotype/docker-debian-artifacts are used to create each tag’s Dockerfile
and collect architecture-specific tarballs into a single place (for placement into dist-ARCH
branches on the same repository, which also contain extra metadata about the artifacts included in each build, such as explicit package versions).
Image Variants
debian:<suite>-slim
These tags are an experiment in providing a slimmer base (removing some extra files that are normally not necessary within containers, such as man pages and documentation), and are definitely subject to change.
See the debuerreotype-slimify
script (debuerreotype
linked above) for more details about what gets removed during the “slimification” process.
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 debian/
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.
library, sample, debian