title: How to switch from docker.io to quay.io?
body: <p>I need help how to switch from image registry server from docker.io to quay.io.
  My cases is I pull centos image from hub.docker.com and I want to push it to quay.io.
  I have login to my quay.io but when I try to push to quay like this shell that was not working.
  Here are my step to switch to quay.io:</p>
  <ol>
  <li>Create quay repository MYUSERNAME/centos</li>
  <li>Logout from docker.io</li>
  </ol>
  <pre class="lang-sh prettyprint-override"><code># docker logout docker.io
  </code></pre>
  <ol start="3">
  <li>Login to quay.io</li>
  </ol>
  <pre class="lang-sh prettyprint-override"><code># docker login quay.io
  </code></pre>
  <ol start="4">
  <li>I fill the credential</li>
  <li>I create new tag</li>
  </ol>
  <pre class="lang-sh prettyprint-override"><code># docker tag IMAGEID MYUSERNAME/centos:7
  </code></pre>
  <ol start="6">
  <li>I push my image to quay</li>
  </ol>
  <pre class="lang-sh prettyprint-override"><code># docker push MYUSERNAME/centos:7
  </code></pre>
  <p>Here is output I got for the last shell command:</p>
  <pre class="lang-sh prettyprint-override"><code>The push refers to repository [docker.io/MYUSERNAME/centos]
  2653d992f4ef: Preparing 
  denied: requested access to the resource is denied
  </code></pre>
  <p>I can see that registry image server still pointed to docker.io.</p>
  <p>How to solve this? Thank you.</p>