title: How to authenticate google cloud SDK on a docker Ubuntu image?
body: <p>I am a bit confused about how I can authenticate the gcloud sdk on a docker container. Right now, my docker file includes the following:</p>
  
  <pre><code>#Install the google SDK
  RUN curl https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz &gt; /tmp/google-cloud-sdk.tar.gz
  RUN mkdir -p /usr/local/gcloud
  RUN tar -C /usr/local/gcloud -xvf /tmp/google-cloud-sdk.tar.gz
  RUN /usr/local/gcloud/google-cloud-sdk/install.sh
  RUN /usr/local/gcloud/google-cloud-sdk/bin/gcloud init
  </code></pre>
  
  <p>However, I am confused how I would authenticate? When I run <code>gcloud auth application-default login</code> on my machine, it opens a new tab in chrome which prompts me to login. How would I input my credentials on the docker container if it opens a new tab in google chrome in the container?</p>