Cloud Run "Hello" container source code
June 8, 2026 ยท View on GitHub
This repository contains the source code of multiple sample applications.
Hello service
A sample service implemented in Go and distributed as a public container image. It is used in the Cloud Run quickstart and is a suggested container image in the Cloud Run UI on Cloud Console.
- Container Image:
us-docker.pkg.dev/cloudrun/container/hello
Configuration Options
Set the COLOR environment variable to a valid CSS color to change the background color.
Response Formats
By default, the service returns answers in HTML format. You can also request responses in JSON or plain text format by passing a URL query parameter or an HTTP header:
- URL Query Parameter: Add
?format=json,?format=text(orplain), or?format=html. - Standard Header: Pass
Accept: application/json,Accept: text/plain, orAccept: text/html.
Hello job
A sample job implemented in Go and distributed as a public container image. It is used in the Cloud Run quickstart and is a suggested container image in the Cloud Run UI on Cloud Console.
- Container Image:
us-docker.pkg.dev/cloudrun/container/hello-job - Source Code: job/
Placeholder service
A sample service implemented in Go and distributed as a public container image. It is used to create a placeholder revision when setting up Continuous Deployment.
- Container Image:
us-docker.pkg.dev/cloudrun/container/placeholder