
library/debian
Debian是一款完全由自由及开源软件构成的Linux发行版,由全球志愿者社区协作开发与维护,始终坚守软件自由与开源的核心原则,提供丰富且经过严格测试的软件包,支持多种硬件架构,以卓越的稳定性、安全性及长期支持特性著称,同时作为众多主流Linux发行版(如Ubuntu)的基础,在开源生态系统中占据重要地位,持续为全球用户及开发者提供可靠的开源计算平台。
让 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:
Debian Developers tianon and paultag -
Where to get help:
the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow
Supported tags and respective Dockerfile links
-
https://github.com/debuerreotype/docker-debian-artifacts/blob/cc5fa8529b7279ece04540fdc22b1a60b30f5dae/bookworm/oci/index.json
-
https://github.com/debuerreotype/docker-debian-artifacts/blob/cc5fa8529b7279ece04540fdc22b1a60b30f5dae/bookworm/backports/Dockerfile
-
https://github.com/debuerreotype/docker-debian-artifacts/blob/cc5fa8529b7279ece04540fdc22b1a60b30f5dae/bookworm/slim/oci/index.json
-
https://github.com/debuerreotype/docker-debian-artifacts/blob/cc5fa8529b7279ece04540fdc22b1a60b30f5dae/bullseye/oci/index.json
-
https://github.com/debuerreotype/docker-debian-artifacts/blob/cc5fa8529b7279ece04540fdc22b1a60b30f5dae/bullseye/slim/oci/index.json
-
https://github.com/debuerreotype/docker-debian-artifacts/blob/cc5fa8529b7279ece04540fdc22b1a60b30f5dae/experimental/Dockerfile
-
https://github.com/debuerreotype/docker-debian-artifacts/blob/cc5fa8529b7279ece04540fdc22b1a60b30f5dae/forky/oci/index.json
-
https://github.com/debuerreotype/docker-debian-artifacts/blob/cc5fa8529b7279ece04540fdc22b1a60b30f5dae/forky/backports/Dockerfile
-
https://github.com/debuerreotype/docker-debian-artifacts/blob/cc5fa8529b7279ece04540fdc22b1a60b30f5dae/forky/slim/oci/index.json
-
https://github.com/debuerreotype/docker-debian-artifacts/blob/cc5fa8529b7279ece04540fdc22b1a60b30f5dae/oldoldstable/oci/index.json
-
https://github.com/debuerreotype/docker-debian-artifacts/blob/cc5fa8529b7279ece04540fdc22b1a60b30f5dae/oldoldstable/slim/oci/index.json
-
https://github.com/debuerreotype/docker-debian-artifacts/blob/cc5fa8529b7279ece04540fdc22b1a60b30f5dae/oldstable/oci/index.json
-
https://github.com/debuerreotype/docker-debian-artifacts/blob/cc5fa8529b7279ece04540fdc22b1a60b30f5dae/oldstable/backports/Dockerfile
-
https://github.com/debuerreotype/docker-debian-artifacts/blob/cc5fa8529b7279ece04540fdc22b1a60b30f5dae/oldstable/slim/oci/index.json
-
https://github.com/debuerreotype/docker-debian-artifacts/blob/cc5fa8529b7279ece04540fdc22b1a60b30f5dae/rc-buggy/Dockerfile
-
https://github.com/debuerreotype/docker-debian-artifacts/blob/cc5fa8529b7279ece04540fdc22b1a60b30f5dae/sid/oci/index.json
-
https://github.com/debuerreotype/docker-debian-artifacts/blob/cc5fa8529b7279ece04540fdc22b1a60b30f5dae/sid/slim/oci/index.json
-
https://github.com/debuerreotype/docker-debian-artifacts/blob/cc5fa8529b7279ece04540fdc22b1a60b30f5dae/stable/oci/index.json
-
https://github.com/debuerreotype/docker-debian-artifacts/blob/cc5fa8529b7279ece04540fdc22b1a60b30f5dae/stable/backports/Dockerfile
-
https://github.com/debuerreotype/docker-debian-artifacts/blob/cc5fa8529b7279ece04540fdc22b1a60b30f5dae/stable/slim/oci/index.json
-
https://github.com/debuerreotype/docker-debian-artifacts/blob/cc5fa8529b7279ece04540fdc22b1a60b30f5dae/testing/oci/index.json
-
https://github.com/debuerreotype/docker-debian-artifacts/blob/cc5fa8529b7279ece04540fdc22b1a60b30f5dae/testing/backports/Dockerfile
-
https://github.com/debuerreotype/docker-debian-artifacts/blob/cc5fa8529b7279ece04540fdc22b1a60b30f5dae/testing/slim/oci/index.json
-
https://github.com/debuerreotype/docker-debian-artifacts/blob/cc5fa8529b7279ece04540fdc22b1a60b30f5dae/trixie/oci/index.json
-
https://github.com/debuerreotype/docker-debian-artifacts/blob/cc5fa8529b7279ece04540fdc22b1a60b30f5dae/trixie/backports/Dockerfile
-
https://github.com/debuerreotype/docker-debian-artifacts/blob/cc5fa8529b7279ece04540fdc22b1a60b30f5dae/trixie/slim/oci/index.json
-
https://github.com/debuerreotype/docker-debian-artifacts/blob/cc5fa8529b7279ece04540fdc22b1a60b30f5dae/unstable/oci/index.json
-
https://github.com/debuerreotype/docker-debian-artifacts/blob/cc5fa8529b7279ece04540fdc22b1a60b30f5dae/unstable/slim/oci/index.json
Quick reference (cont.)
-
Where to file issues:
https://github.com/debuerreotype/docker-debian-artifacts/issues?q= -
Supported architectures: (https://github.com/docker-library/official-images#architectures-other-than-amd64)
https://hub.docker.com/r/amd64/debian/, https://hub.docker.com/r/arm32v5/debian/, https://hub.docker.com/r/arm32v7/debian/, https://hub.docker.com/r/arm64v8/debian/, https://hub.docker.com/r/i386/debian/, https://hub.docker.com/r/mips64le/debian/, https://hub.docker.com/r/ppc64le/debian/, https://hub.docker.com/r/riscv64/debian/, https://hub.docker.com/r/s390x/debian/ -
Published image artifact details:
https://github.com/docker-library/repo-info/blob/master/repos/debian (https://github.com/docker-library/repo-info/commits/master/repos/debian)
(image metadata, transfer size, etc) -
Image updates:
https://github.com/docker-library/official-images/issues?q=label%3Alibrary%2Fdebian
https://github.com/docker-library/official-images/blob/master/library/debian (https://github.com/docker-library/official-images/commits/master/library/debian) -
Source of this description:
https://github.com/docker-library/docs/tree/master/debian (https://github.com/docker-library/docs/commits/master/debian)
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.
***.org/wiki/Debian
!https://raw.githubusercontent.com/docker-library/docs/b449be7df57e9ed9086bb5821bfb5d6cdc5d67a4/debian/logo.png
About this image
The images in this repository are intended to be as minimal as possible (because of the immutable/layered nature of containers, it's much easier to add than it is to remove). More specifically, they're built from the "minbase" variant, which only installs "required" packages, and thus creates the smallest possible footprint that is still "Debian" (as defined/managed by the Release and FTP teams within the project).
The debian:latest tag will always point the latest stable release. Stable releases are also tagged with their version (ie, debian:11 is an alias for debian:bullseye, debian:10 is an alias for debian:buster, 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 https://hub.docker.com/r/debian/eol/, 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. https://github.com/docker-library/postgres/blob/69bc540ecfffecce72d49fa7e4a46680350037f9/9.6/Dockerfile#L21-L24, copied below:
dockerfileRUN 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 https://github.com/debuerreotype/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. https://github.com/debuerreotype/debuerreotype/blob/master/examples/debian.sh (and the debian-all.sh companion/wrapper) is the canonical entrypoint used for creating the artifacts published in this image (via a process similar to the docker-run.sh included in the root of that repository).
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 https://github.com/debuerreotype/docker-debian-artifacts/branches, which also contain extra metadata about the artifacts included in each build, such as explicit package versions included in the base image (rootfs.manifest), the exact snapshot.debian.org timestamp used for debuerreotype invocation (rootfs.debuerreotype-epoch), the sources.list found in the image (rootfs.sources-list) and the one used during image creation (rootfs.sources-list-snapshot), etc.
For convenience, the SHA256 checksum (and full build command) for each of the primary rootfs.tar.xz artifacts are also published at docker.debian.net.
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 https://github.com/docker-library/repo-info/tree/master/repos/debian.
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.
更多相关 Docker 镜像与资源
以下是 debian 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:
- amd64/debian Docker 镜像说明(Debian 操作系统,AMD64 架构版本)
- dockette/debian Docker 镜像说明(Debian 基础开发/运行镜像(Dockette),适合 PHP 与传统 Web 栈)
- corpusops/debian Docker 镜像说明(CorpusOps Debian 基础镜像,适合 Debian 应用部署与迁移)
- library/ubuntu Docker 镜像说明
- arm64v8/ubuntu Docker 镜像说明(Ubuntu 操作系统,ARM64 架构版本)
Deployment & Usage Documentation
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
DockerHub 原生拉取命令
镜像拉取常见问题
功能
错误码
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务