Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Hostname resolution issue while connecting to external url from cloud run container

Hi Everyone ,

We are running cloud run containers , the requirement is we wanted to reach some external services using url the dns defined for those url are organisation internal , when we try to connect its through error hostname resolution failed , I tried to update etc/hosts file in docker image seems not working as docker create this file during run time any way we can solve this issie ?

0 1 741
1 REPLY 1

Hi @FalconSid,

Welcome to the Google Cloud Community!

You can try the following troubleshooting options:

  1. Use Cloud run to Connect to a VPC Network. This way, you can access internal services available in the VPC network.
  2. You can also get in touch with Google Cloud Support if the above option doesn't work.

Let me know if it helped, thanks!