Supported language runtimes and base images

This page describes the supported language runtimes and base images fordeployingservices orfunctions from source, andcontainer images built on scratch.

Base images are composed of an operating system stack and a language runtime:

  • Astack is made up of a Linux distribution versionand system packages, such as OpenSSL andcurl.
  • A language runtime is the specific version of the programming language usedby your application.

Cloud Run supports multiple language runtimes, each of which isavailable through container base images provided byGoogle Cloud's buildpacks. Language runtimes aresupported only as long as they are supported by their respective open sourcecommunities.

It is the developer's responsibility to upgrade services to newerlanguage runtimes before it reaches end of support. Refer to theCloud Runruntime lifecycle for details.

The Cloud Run lifecycle policy does not apply to containers built outsideof Cloud Run.

Using language runtimes

Cloud Run language runtimes are used for the following:

Security and maintenance updates

Security and maintenance updates are available for generally availablelanguage runtimes. You can apply these updates automatically or manually depending on howyou configureautomatic security updates.Automatic security updates are enabled by default when deploying functions andservices to Cloud Run.

How to obtain base images

Base images are hosted in every region whereArtifact Registry is available.

There are three methods for specifying a base image:

  • RUNTIME_ID: Gives you the base image for the specifiedlanguage using its default stack. The base image will be taken from arepository in the sameREGION where your service isdeployed. We recommend you specify theRUNTIME_ID for most cases.
  • STACK/RUNTIME_ID: An alias for the fullbase image path. The base image will be taken from a repository in the sameREGION where your service is deployed. Use this optionif you need a specific system package in thestack.
  • REGION-docker.pkg.dev/serverless-runtimes/STACK/runtimes/RUNTIME_ID:The full base image path. Use this option if you want full control over thespecific base image and the region where it's downloaded from.

For the three methods for specifying a base image, replace:

  • REGION with the preferred region, for exampleeurope-west1.
  • STACK with the preferred operating systemstack, for examplegoogle-24-full.
  • RUNTIME_ID with the language runtime ID used by your function, forexamplenodejs24.

For example, to reference the full base image path for the latest Node.jsbase image using thegoogle-24-full stack, hosted ineurope-west1,use the following URL:

europe-west1-docker.pkg.dev/serverless-runtimes/google-24-full/runtimes/nodejs24

Node.js

RuntimeRuntime IDStacksRuntime base image
Node.js 24nodejs24
  • google-24 (default)
  • google-24-full
  • google-24/nodejs24
  • google-24-full/nodejs24
  • Node.js 22nodejs22
  • google-22 (default)
  • google-22-full
  • google-22/nodejs22
  • google-22-full/nodejs22
  • Node.js 20nodejs20
  • google-22 (default)
  • google-22-full
  • google-22/nodejs20
  • google-22-full/nodejs20
  • Node.js 18nodejs18
  • google-22 (default)
  • google-22-full
  • google-22/nodejs18
  • google-22-full/nodejs18
  • Node.js 16nodejs16 google-18-fullgoogle-18-full/nodejs16
    Node.js 14nodejs14 google-18-fullgoogle-18-full/nodejs14
    Node.js 12nodejs12 google-18-fullgoogle-18-full/nodejs12
    Node.js 10nodejs10 google-18-fullgoogle-18-full/nodejs10
    Node.js 8nodejs8 Decommissioned Decommissioned
    Node.js 6nodejs6 Decommissioned Decommissioned

    Python

    RuntimeRuntime IDStacksRuntime base image
    Python 3.14python314
  • google-24 (default)
  • google-24-full
  • google-24/python314
  • google-24-full/python314
  • Python 3.13python313
  • google-22 (default)
  • google-22-full
  • google-22/python313
  • google-22-full/python313
  • Python 3.12python312
  • google-22 (default)
  • google-22-full
  • google-22/python312
  • google-22-full/python312
  • Python 3.11python311
  • google-22 (default)
  • google-22-full
  • google-22/python311
  • google-22-full/python311
  • Python 3.10python310
  • google-22 (default)
  • google-22-full
  • google-22/python310
  • google-22-full/python310
  • Python 3.9python39 google-18-fullgoogle-18-full/python39
    Python 3.8python38 google-18-fullgoogle-18-full/python38
    Python 3.7python37 google-18-fullgoogle-18-full/python37

    Go

    RuntimeRuntime IDStacksRuntime base image
    Go 1.26
    (Preview)
    go126
  • google-24 (default)
  • google-24-full
  • google-24/go126
  • google-24-full/go126
  • Go 1.25go125
  • google-22 (default)
  • google-22-full
  • google-22/go125
  • google-22-full/go125
  • Go 1.24go124
  • google-22 (default)
  • google-22-full
  • google-22/go124
  • google-22-full/go124
  • Go 1.23
    go123
  • google-22 (default)
  • google-22-full
  • google-22/go123
  • google-22-full/go123
  • Go 1.22go122
  • google-22 (default)
  • google-22-full
  • google-22/go122
  • google-22-full/go122
  • Go 1.21go121
  • google-22 (default)
  • google-22-full
  • google-22/go121
  • google-22-full/go121
  • Go 1.20go120
  • google-22 (default)
  • google-22-full
  • google-22/go120
  • google-22-full/go120
  • Go 1.19go119
  • google-22 (default)
  • google-22-full
  • google-22/go119
  • google-22-full/go119
  • Go 1.18go118
  • google-22 (default)
  • google-22-full
  • google-22/go118
  • google-22-full/go120
  • Go 1.16go116 google-18-fullgoogle-18-full/go116
    Go 1.13go113 google-18-fullgoogle-18-full/go113
    Go 1.11go111 Decommissioned Decommissioned
    Note: Go'srelease policy states that each major Go release is supported until there are two newer major releases. Thus, depending on when newer versions of Go are made publicly available, key dates such as end of support, deprecation, and decommission might be postponed.

    Java

    RuntimeRuntime IDStacksRuntime base image
    Java 25java25
  • google-24 (default)
  • google-24-full
  • google-24/java25
  • google-24-full/java25
  • Java 21java21
  • google-22 (default)
  • google-22-full
  • google-22/java21
  • google-22-full/java21
  • Java 17java17
  • google-22 (default)
  • google-22-full
  • google-22/java17
  • google-22-full/java17
  • Java 11java11 google-18-fullgoogle-18-full/java11

    Ruby

    RuntimeRuntime IDStacksRuntime base image
    Ruby 3.4ruby34
  • google-22 (default)
  • google-22-full
  • google-22/ruby34
  • google-22-full/ruby34
  • Ruby 3.3ruby33
  • google-22 (default)
  • google-22-full
  • google-22/ruby33
  • google-22-full/ruby33
  • Ruby 3.2ruby32
  • google-22 (default)
  • google-22-full
  • google-22/ruby32
  • google-22-full/ruby32
  • Ruby 3.0ruby30 google-18-fullgoogle-18-full/ruby30
    Ruby 2.7ruby27 google-18-fullgoogle-18-full/ruby27
    Ruby 2.6ruby26 google-18-fullgoogle-18-full/ruby26

    PHP

    RuntimeRuntime IDStacksRuntime base image
    PHP 8.5
    (Preview)
    php85 google-24-full (default)google-24-full/php85
    PHP 8.4php84 google-22-full (default)google-22-full/php84
    PHP 8.3php83 google-22-full (default)google-22-full/php83
    PHP 8.2php82 google-22-full (default)google-22-full/php82
    PHP 8.1php81 google-18-fullgoogle-18-full/php81
    PHP 7.4php74 google-18-fullgoogle-18-full/php74

    .NET

    RuntimeRuntime IDStacksRuntime base image
    .NET 10dotnet10
  • google-24 (default)
  • google-24-full
  • google-24/dotnet10
  • google-24-full/dotnet10
  • .NET 8dotnet8
  • google-22 (default)
  • google-22-full
  • google-22/dotnet8
  • google-22-full/dotnet8
  • .NET 6dotnet6
  • google-22 (default)
  • google-22-full
  • google-22/dotnet6
  • google-22-full/dotnet6
  • .NET Core 3dotnet3 google-18-fullgoogle-18-full/dotnet3

    OS only

    RuntimeRuntime IDStacksRuntime base image
    OS only 24osonly24 google-24 (default)google-24/osonly24

    Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

    Last updated 2026-02-19 UTC.