
Before you begin
- Labs create a Google Cloud project and resources for a fixed time
- Labs have a time limit and no pause feature. If you end the lab, you'll have to restart from the beginning.
- On the top left of your screen, click Start lab to begin
Validate successful task completion.
/ 100
Cloud Shell is a virtual machine that is loaded with development tools. It offers a persistent 5GB home directory and runs on the Google Cloud. Cloud Shell provides command-line access to your Google Cloud resources.
When you are connected, you are already authenticated, and the project is set to your PROJECT_ID. The output contains a line that declares the PROJECT_ID for this session:
gcloud
is the command-line tool for Google Cloud. It comes pre-installed on Cloud Shell and supports tab-completion.
Click Authorize.
Your output should now look like this:
Output:
Output:
Example output:
gcloud
, in Google Cloud, refer to the gcloud CLI overview guide.
In this lab, you'll learn how to create an Artifact Registry repository for storing container images and then push a sample image to it. Artifact Registry provides a central location for managing and securing your container images and other build artifacts. This lab assumes familiarity with Docker and basic Google Cloud concepts.
Before you can use Artifact Registry, you need to enable the API for your project.
Now, create a Docker repository in Artifact Registry to store your container images. You'll need to choose a region for the repository.
To push and pull images, configure Docker to authenticate with Artifact Registry.
Let's build a simple Docker image and tag it for Artifact Registry. This example uses a simple nginx image.
Now, push the tagged image to your Artifact Registry repository.
You have successfully created an Artifact Registry repository, built a Docker image, tagged it, and pushed it to Artifact Registry. You can now use this image in your deployments.
Manual Last Updated Jun 23, 2025
Lab Last Tested Jun 23, 2025
This content is not currently available
We will notify you via email when it becomes available
Great!
We will contact you via email if it becomes available
One lab at a time
Confirm to end all existing labs and start this one