title: "500 Internal Server Error" when pushing docker images using gcloud and a service account with "Owner" permission
body: <p>I am trying to push a docker container image to the Google Container Engine registry:</p>
  
  <pre><code>$ sudo gcloud docker push gcr.io/&lt;my_project&gt;/node
  The push refers to a repository [gcr.io/&lt;my_project&gt;/node] (len: 1)
  24c43271ae0b: Image already exists 
  70a0868daa56: Image already exists 
  1d86f57ee56d: Image already exists 
  a46b473f6491: Image already exists 
  a1ac8265769f: Image already exists 
  290bb858e1c3: Image already exists 
  d6fc4b5b4917: Image already exists 
  3842411e5c4c: Image already exists 
  7a01cc5f27b1: Image already exists 
  dbacfa057b30: Image already exists 
  latest: digest: sha256:02be2e66ad2fe022f433e228aa43f32d969433402820035ac8826880dbc325e4 size: 17236
  Received unexpected HTTP status: 500 Internal Server Error
  </code></pre>
  
  <p>I can not make the command verbose more. Neither with:</p>
  
  <pre><code>$ sudo gcloud docker push gcr.io/&lt;my_project&gt;/node --verbosity info
  </code></pre>
  
  <p>nor with this command that should work:</p>
  
  <pre><code>$ sudo gcloud docker --log-level=info push gcr.io/sigma-cairn-99810/node
  usage: gcloud docker  [EXTRA_ARGS ...] [optional flags]
  ERROR: (gcloud.docker) unrecognized arguments: --log-level=info
  </code></pre>
  
  <p>according to the documentation (see <code>EXTRA_ARGS</code>) and <code>--log-level=info</code> is a valid docker option:</p>
  
  <pre><code>SYNOPSIS
      gcloud docker [EXTRA_ARGS ...] [--authorize-only, -a]
          [--docker-host DOCKER_HOST]
          [--server SERVER,[SERVER,...], -s SERVER,[SERVER,...]; default="gcr.io,us.gcr.io,eu.gcr.io,asia.gcr.io,b.gcr.io,bucket.gcr.io,appengine.gcr.io"]
          [GLOBAL-FLAG ...]
  ...    
  
  POSITIONAL ARGUMENTS
       [EXTRA_ARGS ...]
          Arguments to pass to docker.
  </code></pre>
  
  <p>I am using the default service account that GCP installs on my <code>container-vm</code> machine instance. I have given it also <strong>Owner</strong> permissions to all resources in <code>&lt;my_project&gt;</code>.</p>
  
  <hr>
  
  <p>UPDATE:</p>
  
  <p>Running <code>sudo gsutil ls -bL gs://artifacts.&lt;my_project&gt;.appspot.com</code> I get:</p>
  
  <pre><code>gs://artifacts.&lt;my_project&gt;.appspot.com/ :
      Storage class:          STANDARD
      Location constraint:        US
      Versioning enabled:     None
      Logging configuration:      None
      Website configuration:      None
      CORS configuration:         None
      Lifecycle configuration:    None
      ACL:                []
      Default ACL:            []
  </code></pre>
  
  <p>If I do the same thing after authenticating with my non-service account, I get both <code>ACL</code> and <code>Default ACL</code>:</p>
  
  <pre><code>ACL:                
    [
      {
        "entity": "project-owners-262451203973",
        "projectTeam": {
          "projectNumber": "262451203973",
          "team": "owners"
        },
        "role": "OWNER"
      },
      {
        "entity": "project-editors-262451203973",
        "projectTeam": {
          "projectNumber": "262451203973",
          "team": "editors"
        },
        "role": "OWNER"
      },
      {
        "entity": "project-viewers-262451203973",
        "projectTeam": {
          "projectNumber": "262451203973",
          "team": "viewers"
        },
        "role": "READER"
      }
    ]
  Default ACL:            
    [
      {
        "entity": "project-owners-262451203973",
        "projectTeam": {
          "projectNumber": "262451203973",
          "team": "owners"
        },
        "role": "OWNER"
      },
      {
        "entity": "project-editors-262451203973",
        "projectTeam": {
          "projectNumber": "262451203973",
          "team": "editors"
        },
        "role": "OWNER"
      },
      {
        "entity": "project-viewers-262451203973",
        "projectTeam": {
          "projectNumber": "262451203973",
          "team": "viewers"
        },
        "role": "READER"
      }
    ]
  </code></pre>