title: Cannot access Google Container Registry from Google Compute Engine
body: <p>I'm at my wits trying to get Docker images from Google Container Registry onto a Google Compute Engine instance. (The images I need have been successfully uploaded to GCR.)</p>
  
  <ol>
  <li><p>I've logged in using <code>gcloud auth login</code> and then tried <code>gcloud docker pull -- us.gcr.io/app-999/app</code> which results in <code>ERROR: (gcloud.docker) Docker is not installed.</code>.</p></li>
  <li><p>I've tried to authenticate using <a href="https://cloud.google.com/container-registry/docs/advanced-authentication" rel="noreferrer">oauth</a> and pulling via a normal docker call. I see my credentials when I look at the file at <code>.docker/config.json</code>. Doing that, it looks like it's going to work, but ultimatly ends like this:</p>
  
  <p><code>mbname@instance-1 ~ $ docker pull -- us.gcr.io/app-999/app
  Using default tag: latest
  latest: Pulling from app-999/app
  b7f33cc0b48e: Pulling fs layer 
  43a564ae36a3: Pulling fs layer 
  b294f0e7874b: Pulling fs layer 
  eb34a236f836: Waiting 
  error pulling image configuration: unauthorized: authentication required</code></p></li>
  </ol>
  
  <p>which looks like progress, because at least it attempted to download something.</p>
  
  <p>I've tried both of these things on my local machine as well and both methods were successful.</p>
  
  <p>Am I missing something?</p>
  
  <p>Thanks for your help.</p>
  
  <p>P.S. I've also tried loading a container from another registry (
  Docker Hub) and that worked fine, but I need more than one container and want to keep expenses down.</p>