- Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
In the Google Cloud Console, on the project selector page, select or create a Google Cloud project.
Make sure that billing is enabled for your Cloud project. Learn how to confirm that billing is enabled for your project.
- Enable the Cloud Run Admin API
- Install and initialize the Cloud SDK.
gcloud components update
Optionally, set your platform and default Cloud Run region with the
gcloud properties to avoid prompts from the command line:
gcloud config set run/region REGIONreplacing REGION with the default region you want to use.
Optionally, install Docker
to build Docker containers locally.
If you do so, you must invoke the following gcloud
commands to add the gcloud Docker credential helper:
gcloud auth configure-docker gcloud components install docker-credential-gcrFor more information about Docker credential helpers, see the documentation for the docker-credential-gcr project.
Cloud Run regions
Cloud Run is regional, which means the infrastructure that
runs your Cloud Run services is located in a specific region and is
managed by Google to be redundantly available across
all the zones within that region.
Meeting your latency, availability, or durability requirements are primary
factors for selecting the region where your Cloud Run services are run.
You can generally select the region nearest to your users but you should consider
the location of the other Google Cloud
products that are used by your Cloud Run service.
Using Google Cloud products together across multiple locations can affect
your service's latency as well as cost.
Cloud Run is available in the following regions:
Subject to Tier 1 pricing
europe-north1(Finland) Low CO2
europe-west1(Belgium) Low CO2
us-central1(Iowa) Low CO2
us-west1(Oregon) Low CO2
Subject to Tier 2 pricing
asia-northeast3(Seoul, South Korea)
europe-west6(Zurich, Switzerland) Low CO2
northamerica-northeast1(Montreal) Low CO2
southamerica-east1(Sao Paulo, Brazil) Low CO2
us-west4(Salt Lake City)
If you already created a Cloud Run service, you can view the region in the Cloud Run dashboard in the Cloud Console.
To learn how to build a container from code source, push to Container Registry, and deploy, see: