许多基础映像是基本或最小 Linux 发行版:Debian、Ubuntu、Red Hat Enterprise Linux (RHEL)、Rocky Linux 或 Alpine。开发者可以直接从 Docker Hub 或其他来源使用这些映像。除了各种其他下游重新打包器,还有官方提供商叠加软件来满足客户需求。
Google 维护用于构建其自己的应用的基础映像。这些映像是使用 Docker Hub 使用的相同来源构建的。因此,它们与您从 Docker Hub 获取的映像一致。
使用 Google 维护的映像的优势在于,这些映像存储在Google Cloud上,因此您可以直接从环境中拉取这些映像,而无需遍历网络。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-18。"],[],[],null,["# Base images\n\nThis page provides an overview of Google-provided base container images.\n\nWhat are base images?\n---------------------\n\nA base image is the starting point for most container-based development\nworkflows. Developers start with a base image and layer on top of it the\nnecessary libraries, binaries, and configuration files used to run their\napplication.\n\nMany base images are basic or minimal Linux distributions: Debian, Ubuntu, Red\nHat Enterprise Linux (RHEL), Rocky Linux, or Alpine. Developers can consume\nthese images directly from Docker Hub or other sources. There are official\nproviders along with a wide variety of other downstream repackagers that layer\nsoftware to meet customer needs.\n\nGoogle maintains base images for building its own applications. These images are\nbuilt from the same source that Docker Hub uses. Therefore, they match the\nimages you would get from Docker Hub.\n\nThe advantage of using Google-maintained images is that they are stored on\nGoogle Cloud, so you can pull these images directly from your\nenvironment without having to traverse networks.\n\nGoogle updates these images whenever a new version of an official image is\nreleased. For more information on image versions, see the GitHub repository of\n[official images](https://github.com/docker-library/official-images).\n\nGoogle-provided base images\n---------------------------\n\nGoogle-provided [base images](https://console.cloud.google.com/marketplace/browse?filter=solution-type:container&filter=category:os) are available for the following OS\ndistributions:\n\nChanges to Google-provided base images\n--------------------------------------\n\nThe following base image changes took effect on November 3, 2023:\n\n- Updated Debian 11 images no longer have OpenSSL pre-installed.\n- The updated Ubuntu 20.04 image no longer has curl, Python, systemd, or sudo pre-installed.\n- Google no longer provides base images for the following Linux distributions: CentOS 7, CentOS 8, Ubuntu 18.04, and Debian 9 \"Stretch\".\n\nLicensing\n---------\n\nFor information about the license that applies to the base images, refer to the\ndistribution's documentation.\n\nAlternative options\n-------------------\n\nIf base images aren't for you, you can use **Cached images** , which\nare frequently requested Docker Hub images stored on `mirror.gcr.io`. If you\nconfigure your Docker daemon to use cached images, your client always checks for\na cached copy of a Docker Hub image before attempting to pull it directly from\nDocker Hub.\n\nLearn more about [pulling cached images](/artifact-registry/docs/pull-cached-dockerhub-images).\n\nFor more ways to protect your software supply chain, including image validation,\nsee [Software supply chain security](/software-supply-chain-security/docs/overview).\n\nWhat's next\n-----------\n\n- Learn about [dependency management](/software-supply-chain-security/docs/dependencies)."]]