Bird
0
0

You run:

medium📝 Debug Q14 of 15
GCP - Cloud Run
You run:
gcloud run deploy --image=gcr.io/myproj/app:v2 --region=us-west1
But get an error: "Service name is required." What is the fix?
ARemove the --region flag
BChange --image to --container-image
CAdd the service name after 'deploy', e.g., 'gcloud run deploy myservice ...'
DRun the command without 'gcloud run'
Step-by-Step Solution
Solution:
  1. Step 1: Identify missing required argument

    The error says service name is missing; the deploy command needs a service name after 'deploy'.
  2. Step 2: Fix the command by adding service name

    Add the service name, e.g., 'myservice', after 'deploy' to fix the error.
  3. Final Answer:

    Add the service name after 'deploy', e.g., 'gcloud run deploy myservice ...' -> Option C
  4. Quick Check:

    Deploy needs service name [OK]
Quick Trick: Always specify service name after 'deploy' [OK]
Common Mistakes:
  • Omitting service name
  • Changing unrelated flags
  • Removing required command parts

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes