I would like to deploy a container image to Google Cloud Run (fully managed). I follow the instructions:
https://cloud.google.com/run/docs/quickstarts/build-and-deploy
I was wondering if I can fix static IP for the container or not. Please note that I am not using VM instance. I am new to use this service. I really appreciate it if you could help me on this issue.
You can get a static IP for your Cloud Run service (not individual containers, as many containers can be running the same app) by creating a "Cloud HTTP(S) Load Balancer" that serves on a static IP and putting your service behind it.
See the relevant section in documentation on how to create a LB and add a "serverless network endpoint group" behinding it that routes the traffic to Cloud Run.
There's also sample step-by-step guide on this with a load balancer with static IP at https://cloud.google.com/run/docs/multiple-regions.
If you mean "how do I get static IPs for outbound connections my Cloud Run app make", that's a different question with a different answer (it'll be possible soon).
UPDATE (4 Sep 2023): This is now possible with Static outbound IP address for Google Cloud Run. Documentation here: https://cloud.google.com/run/docs/configuring/static-outbound-ip