Deploying a Docker Image to Cloud Run

15 minutes
  • 4 Learning Objectives

About this Hands-on Lab

A containerized web app is like a meal sitting back in the restaurant kitchen; it must be served in order to reach its full potential. Just so, a containerized disk image created by Cloud Build needs to be deployed to Cloud Run. In this hands-on lab, you gain experience providing this service and verifying that it deploys as expected.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Retrieve and Activate Resource Files

In Cloud Shell, clone the desired GitHub repo and run the setup script.

Containerize the App and Store the Disk Image

Use the appropriate gcloud command invoking Cloud Build to containerize the web app and then store the resulting disk image in Container Registry.

Deploy the Disk Image to Cloud Run

In Cloud Shell, execute the proper command to deploy the stored disk image to Cloud Run.

Confirm the Deployment

Verify the service is running in Cloud Shell and use the supplied URL to view the app in the browser.

Additional Resources

With the containerized app in hand — or rather in the Container Registry — you are ready to deploy the app to Cloud Run. Rather than use the console, you've decided to rely on the Cloud Shell to perform the necessary actions. Once the operation has completed, you'll need to verify the deployment via the command line and browser.


GitHub repo:

Deploy to us-east1 region.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?