Ultimate access to all questions.
You are tasked with migrating a Docker application from a datacenter to the cloud. Your solution architect recommends uploading Docker images to Google Container Registry (GCR) in one project and running the application in a Google Kubernetes Engine (GKE) cluster in a separate project. Specifically, you need to store images in the project img-278322
and run the application in the project prod-278986
. The image should be tagged as acme_track_n_trace:v1
. Following Google's recommended practices, what is the correct action to take?
Explanation:
The correct command is gcloud builds submit --tag gcr.io/img-278322/acme_track_n_trace:v1
. This command correctly tags the image as acme_track_n_trace:v1
and uploads it to the img-278322
project, adhering to Google's recommended practices. Other options either tag the image incorrectly (as latest
instead of v1
) or upload the image to the wrong project (prod-278986
). For more details, refer to the Google Cloud SDK documentation.