許多基礎映像檔都是基本或最精簡的 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"]],["上次更新時間:2025-09-09 (世界標準時間)。"],[],[],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)."]]