自动更新(默认):运行时环境的更新和安全补丁会在新版本的运行时映像中发布。在经过一段时间的稳定性和可靠性测试后,更新后的运行时会部署到所有函数,从而使更新停机时间为零。Cloud Run functions(第 1 代)和 Cloud Run functions 提供自动安全更新。如需进行语言级安全修复,您可能需要重新构建使用编译语言(如 Go 或 Java)的函数。
在部署更新时:除非另有说明,否则更新或安全补丁仅在部署或重新部署函数时应用于运行时。部署时更新同时适用于 Cloud Run functions(第 1 代)和 Cloud Run functions。
[[["易于理解","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-25。"],[[["\u003cp\u003eCloud Run functions operate within a secure execution environment using versioned runtime images maintained by Google, which include operating system libraries, language runtimes, and system packages.\u003c/p\u003e\n"],["\u003cp\u003eYou can identify the specific runtime image used to build your function by searching for \u003ccode\u003egoogle.run-image\u003c/code\u003e in the build logs.\u003c/p\u003e\n"],["\u003cp\u003eThere are two security update policies for runtime environments: automatic updates, which are applied to all functions after stability testing, and on-deployment updates, which occur only when functions are deployed or redeployed.\u003c/p\u003e\n"],["\u003cp\u003eThe runtime update policy for a function can be set or changed using the \u003ccode\u003e--runtime-update-policy\u003c/code\u003e flag within the \u003ccode\u003egcloud deploy\u003c/code\u003e command, and the current policy can be inspected with \u003ccode\u003egcloud functions describe\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eFunctions with automatic updates are built on top of a \u003ccode\u003escratch\u003c/code\u003e image, resulting in a smaller container in Artifact Registry, and security scans can be performed on the Google-managed base images.\u003c/p\u003e\n"]]],[],null,[]]