title: Access denied when pulling Docker image from a repository I own
body: <p>I built a Docker image that I pushed to Docker Hub under my account and removed locally after. But when I try to pull it, it throws the following error:</p>
  
  <p><code>Error response from daemon: pull access denied for mightyspaj/dockerfile-assignment-1, repository does not exist or may require 'docker login'</code></p>
  
  <p>I'm logged into the same account that owns the repository for this image and can perform other tasks (such as pushing) perfectly fine. The repository also definitely exists on Docker Hub, yet it fails when I try to pull it.</p>
  
  <h3>I've tried the following things:</h3>
  
  <ol>
  <li>Logging out of my account and back in again</li>
  <li>Renaming <code>config.json</code> and regenerating it</li>
  <li>Running an isolated <code>Docker</code> container with <code>docker run -it --rm -v /var/run/docker.sock:/var/run/docker.sock:ro docker sh</code>, then logging into my account and attempting to pull the image</li>
  <li>Deleting and recreating the repository</li>
  </ol>
  
  <p>All of these things still produce the same error. I'm baffled.</p>
  
  <p>To note, both my client and engine versions are <code>17.12.0-ce</code>. My OS is Ubuntu 17.10 (64-bit).</p>
  
  <h2>Console output</h2>
  
  <h3><code>docker login</code></h3>
  
  <pre><code>-&gt; % docker login
  Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head over to https://hub.docker.com to create one.
  Username: mightyspaj
  Password: 
  Login Succeeded
  </code></pre>
  
  <h3><code>docker tag</code></h3>
  
  <pre><code>-&gt; % docker tag dockerfile-assignment-1:latest mightyspaj/dockerfile-assignment-1
  </code></pre>
  
  <h3><code>docker push</code></h3>
  
  <pre><code>-&gt; % docker push mightyspaj/dockerfile-assignment-1                              
  The push refers to repository [docker.io/mightyspaj/dockerfile-assignment-1]
  8427a8e6a29f: Pushed 
  655a921743e8: Pushed 
  8aa44edb7524: Pushed 
  60f1a2dc4cd8: Mounted from library/node 
  9185fe936b87: Mounted from library/node 
  e53f74215d12: Mounted from library/node 
  latest: digest: sha256:6c68220ba84f13d0229ef4458f22369410bb98764b908a75be0849c3003de160 size: 1582
  </code></pre>
  
  <h3><code>docker image rm</code></h3>
  
  <pre><code>-&gt; % docker image rm mightyspaj/dockerfile-assignment-1
  Untagged: mightyspaj/dockerfile-assignment-1:latest
  Untagged: mightyspaj/dockerfile-assignment-1@sha256:6c68220ba84f13d0229ef4458f22369410bb98764b908a75be0849c3003de160
  </code></pre>
  
  <h3><code>docker image pull</code></h3>
  
  <pre><code>-&gt; % docker image pull mightyspaj/dockerfile-assignment-1
  Using default tag: latest
  Error response from daemon: pull access denied for mightyspaj/dockerfile-assignment-1, repository does not exist or may require 'docker login'
  </code></pre>