title: "no basic auth credentials" while pulling image or doing docker-compose for images from a private Nexus repository
body: <p><strong>I wanted to put the question and its resolution here as I encountered this issue while pulling an image from a private Nexus repository and I wasn't able to find a clear solution.</strong></p>
  <p><strong>Issue</strong>:</p>
  <p>
  I have an access to a private Nexus repository which I was able to validate but going to the Nexus repo portal and signing into it. 
  I have installed Docker on my mac and try to pull an image from the above Nexus repo portal.
  </p>
  <p>Something like the below (where <strong>redis-dev1</strong> is the image name in the repo)</p>
  <pre class="lang-none prettyprint-override"><code>docker pull nexusrepo.domain.com:8343/redis-dev1 
  </code></pre>
  <p>When I do that : I get the following error:</p>
  <pre class="lang-none prettyprint-override"><code>Error response from daemon: Get https://nexusrepo.domain.com:8343/redis-dev1/manifests/1:
  no basic auth credentials
  </code></pre>