0
0
GCPcloud~10 mins

Pushing and pulling images in GCP - Interactive Code Practice

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

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

GCP
docker [1] gcr.io/my-project/my-image:latest
Drag options to blanks, or click blank then click option'
Apush
Bpull
Crun
Dbuild
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'docker pull' instead of 'docker push'.
Using 'docker run' which runs containers, not pushes images.
2fill in blank
medium

Complete the command to pull a Docker image from Google Container Registry.

GCP
docker [1] gcr.io/my-project/my-image:latest
Drag options to blanks, or click blank then click option'
Abuild
Bpush
Cpull
Drun
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'docker push' instead of 'docker pull'.
Using 'docker build' which creates images locally.
3fill in blank
hard

Fix the error in the command to tag a local image for pushing to Google Container Registry.

GCP
docker tag my-image:latest [1]/my-project/my-image:latest
Drag options to blanks, or click blank then click option'
Agcr.io
Bregistry.hub.docker.com
Clocalhost
Ddocker.io
Attempts:
3 left
💡 Hint
Common Mistakes
Using Docker Hub hostnames instead of Google Container Registry.
Using 'localhost' which is not a remote registry.
4fill in blank
hard

Fill both blanks to complete the command that authenticates Docker to Google Container Registry.

GCP
gcloud auth [1]-docker [2]
Drag options to blanks, or click blank then click option'
Aconfigure
Blogin
C--quiet
D--no-quiet
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'login' instead of 'configure'.
Omitting the quiet flag causing prompts.
5fill in blank
hard

Fill both blanks to complete the command that lists tags for an image in a Google Container Registry repository.

GCP
gcloud container images list-[1] gcr.io/my-project/[2]
Drag options to blanks, or click blank then click option'
Atags
Bfilter
Cmy-image
Ddelete
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'delete' instead of 'tags' which removes images.
Omitting the image name causing 'not found' error.