0
0
GCPcloud~10 mins

Why container registry matters in GCP - Test Your Understanding

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to specify the container image path in Google Container Registry.

GCP
image_path = "gcr.io/my-project/[1]"
Drag options to blanks, or click blank then click option'
Amy-image
Bmy-project
Ccontainer
Dregistry
Attempts:
3 left
💡 Hint
Common Mistakes
Using project ID again instead of image name
Using 'container' or 'registry' as image name
2fill in blank
medium

Complete the command to push a Docker image to Google Container Registry.

GCP
docker push [1]
Drag options to blanks, or click blank then click option'
Aregistry.hub.docker.com/my-image
Bdocker.io/my-image
Clocal/my-image
Dgcr.io/my-project/my-image
Attempts:
3 left
💡 Hint
Common Mistakes
Using Docker Hub paths instead of gcr.io
Using local image names without registry path
3fill in blank
hard

Fix the error in the command to authenticate Docker with Google Container Registry.

GCP
gcloud auth configure-[1]
Drag options to blanks, or click blank then click option'
Akubectl
Bcontainer
Cdocker
Dgke
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'kubectl' or 'gke' instead of 'docker'
Using 'container' which is not a valid option
4fill in blank
hard

Fill both blanks to create a command that lists images in Google Container Registry.

GCP
gcloud container images [1] gcr.io/my-project/[2]
Drag options to blanks, or click blank then click option'
Alist
Bdelete
Cmy-image
Ddescribe
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'delete' or 'describe' instead of 'list'
Using project ID instead of image name in second blank
5fill in blank
hard

Fill all three blanks to tag a local Docker image before pushing it to Google Container Registry.

GCP
docker tag [1] gcr.io/[2]/[3]
Drag options to blanks, or click blank then click option'
Alocal-image
Bmy-project
Cmy-image
Ddocker-image
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up local and registry image names
Using incorrect project ID or image names