title: Google Container Registry gives access denied when trying to push docker container
body: <p>So I'm trying to push my docker image to gcr.io/docker-url, but it's not working. I've tried the documentation that Google has, but that's still failed (<a href="https://cloud.google.com/container-registry/docs/advanced-authentication#standalone_docker_credential_helper" rel="nofollow noreferrer">https://cloud.google.com/container-registry/docs/advanced-authentication#standalone_docker_credential_helper</a>). I also tried:</p>
  
  <pre><code>docker login gcr.io 
  </code></pre>
  
  <p>and </p>
  
  <pre><code>docker login us.gcr.io
  </code></pre>
  
  <p>Here's the command I run and my error:</p>
  
  <pre><code>docker push gcr.io/docker-url/jenkins/container
  The push refers to repository [gcr.io/docker-url/jenkins/container]
  d7ab52d2e8be: Pushing [==================================================&gt;]   2.56kB
  fae569eb21a4: Pushing  1.536kB
  7a20d9096c74: Pushing [====&gt;                                              ]  735.7kB/7.854MB
  a26d457fd72d: Pushing [&gt;                                                  ]  60.93kB/6.055MB
  36f2fac55108: Pushing [&gt;                                                  ]  502.8kB/49.16MB
  4cd936335289: Waiting 
  f1b5933fe4b5: Waiting 
  denied: Access denied.
  </code></pre>
  
  <p>For reference, I used the json file to login. I even tried all of the StackOverflow answers I could find, but no luck there, either.</p>