I am trying to follow example at How to deploy Flutter WebApp using Google Cloud Run and it says
Create a Dockerfile in the root folder; this file configures the Docker image and containerizes the app. Copy the following content into your Dockerfile
that I created as well as server.sh in server folder ,
When I run
gcloud builds submit — tag gcr.io/{PROJECT_ID}/{YOUR-IMAGE-NAME}:$tag .
C:\projects\myproject11>gcloud builds submit — tag gcr.io/myproject11/xyz:1.0
ERROR: (gcloud.builds.submit) unrecognized arguments:
tag
gcr.io/myproject11/xyz:1.0
To search the help text of gcloud commands, run:
gcloud help -- SEARCH_TERMS
C:\projects\myproject11>
Seems the error is due to long dash tag in the command you are trying to run. You need to add the
--beforetagto indicate that it's a flag.you can check this document for examplesAs mentioned here, looks like you are also facing the same issue as you following the example in medium .