Docker run Error: Status 403 trying to pull repository Unable to access the repository:
<p>I am getting error running a docker container using the following command. </p>

<p>$ docker run -d -p 8080:8080 -t gcr.io//hello-dotnet:v1</p>

<pre><code>vinay@dotnet-project-146402:~/HelloWorld$ docker run -d -p 8080:8080 -t gcr.io/dotnet-project-146402/hello-dotnet:v1
Unable to find image 'gcr.io/dotnet-project-146402/hello-dotnet:v1' locally
Pulling repository gcr.io/dotnet-project-146402/hello-dotnet
Error: Status 403 trying to pull repository dotnet-project-146402/hello-dotnet: "Unable to access the repository: dotnet-project-146402/hello-dotnet; please verify that it exists and you have permission to access it (no valid credential w
as supplied)."
</code></pre>

<p>----------------------Update----------------</p>

<pre><code>vinay@dotnet-project-146402:~/HelloWorld$ docker pull gcr.io/dotnet-project-146402/hello-dotnet:v1
Pulling repository gcr.io/dotnet-project-146402/hello-dotnet
Error: Status 403 trying to pull repository dotnet-project-146402/hello-dotnet: "Unable to access the repository: dotnet-project-146402/hello-dotnet; please verify that it exists and you have permission to access it (no valid credential w
as supplied)."
</code></pre>

<p>----------------------Update----------------</p>

<pre><code>WARNING: login credentials saved in /home/vinay/.docker/config.json
Login Succeeded
vinay@dotnet-project-146402:~/HelloWorld$ docker run -d -p 8080:8080 -t gcr.io/dotnet-project-146402/hello-dotnet:v1
Unable to find image 'gcr.io/dotnet-project-146402/hello-dotnet:v1' locally
Pulling repository gcr.io/dotnet-project-146402/hello-dotnet
Error: Status 403 trying to pull repository dotnet-project-146402/hello-dotnet: "Unable to access the repository: dotnet-project-146402/hello-dotnet; please verify that it exists and you have permission to access it."
vinay@dotnet-project-146402:~/HelloWorld$ docker pull gcr.io/dotnet-project-146402/hello-dotnet:v1
Pulling repository gcr.io/dotnet-project-146402/hello-dotnet
Error: Status 403 trying to pull repository dotnet-project-146402/hello-dotnet: "Unable to access the repository: dotnet-project-146402/hello-dotnet; please verify that it exists and you have permission to access it."
vinay@dotnet-project-146402:~/HelloWorld$ 
</code></pre>

<p>The docker login command is </p>

<pre><code>docker login -e vinay@vinayjoseph.com -u oauth2accesstoken -p "$(gcloud auth print-access-token)" https://gcr.io  
</code></pre>