title: How to use gsutil in startup-script on container-os image in GCP?
body: <p>I'm creating my GCE instance with <code>gcloud beta compute instances create-with-container</code> and the following startup-script:</p>
  <pre><code>#! /bin/bash
  gsutil cp gs://artifacts.&lt;PROJECT-ID&gt;.appspot.com/some-file .
  docker-credential-gcr configure-docker
  docker pull gcr.io/&lt;PROJECT-ID&gt;/image:tag
  docker run --name compose --rm -v $PWD:$PWD -w $PWD -v /var/run/docker.sock:/var/run/docker.sock docker/compose:1.26.0 up -d --force-recreate
  </code></pre>
  <p>but I am ending with the following:</p>
  <pre><code>Jun 23 15:22:08 app startup-script[389]: INFO Found startup-script in metadata.
  Jun 23 15:22:08 app startup-script[389]: INFO startup-script: /var/lib/google/startup-DqGmUt/tmpPyYsVd: line 2: gsutil: command not found
  Jun 23 15:22:09 app startup-script[389]: INFO startup-script: ERROR: Unable to save docker config: mkdir /root/.docker: read-only file system
  </code></pre>
  <p>I tried installing gsutil also in the startup-script but it bails out with the same problem of /root being RO. Is it actually possible to do this on a COS image?</p>