Home » DevOps » Docker | Windows 10/ Mac OS | unauthorized: incorrect username or password when trying to pull images

About Ahmad Gohar

Ahmad Gohar
Technical Team Leader with 9+ years experience in designing and developing enterprise Solution using Oracle, IBM, and Open Source. With a solid technical and academic background. Strong technical project management experience, coordinate demo's for QA team, performing code, design and test plan reviews.

Docker | Windows 10/ Mac OS | unauthorized: incorrect username or password when trying to pull images

It happens because the docker client (on macOS or Windos 10) allows you to sign in with your email address and password. If you sign out and sign in with your Docker Username and password everything will work. So here’s a better description of the issue

Description

When trying to pull images from the Docker registry docker: Error response from daemon: Get https://registry-1.docker.io/v2/library/hello-world/manifests/latest: unauthorized: incorrect username or password. This happens if you sign in to Docker using your email address instead of your username.

Steps to Reproduce

  1. Clean install, or reset preferences for Docker
  2. Sign in to Docker GUI using your email address and password
  3. In the terminal, pull an image from the Docker registry

Actual Results

docker: Error response from daemon: Get https://registry-1.docker.io/v2/library/hello-world/manifests/latest: unauthorized: incorrect username or password.

Solution

Try logging back in with the CLI via docker login

Published on System Code Geeks with permission by Ahmad Gohar, partner at our SCG program. See the original article here: Docker | Windows 10/ Mac OS | unauthorized: incorrect username or password when trying to pull images

Opinions expressed by System Code Geeks contributors are their own.

(0 rating, 0 votes)
You need to be a registered member to rate this.
Start the discussion Views Tweet it!
Do you want to know how to develop your skillset to become a sysadmin Rockstar?
Subscribe to our newsletter to start Rocking right now!
To get you started we give you our best selling eBooks for FREE!
1. Introduction to NGINX
2. Apache HTTP Server Cookbook
3. VirtualBox Essentials
4. Nagios Monitoring Cookbook
5. Linux BASH Programming Cookbook
6. Postgresql Database Tutorial
and many more ....
I agree to the Terms and Privacy Policy

Leave a Reply

avatar

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  Subscribe  
Notify of