Ahmad Gohar Featured Image 1886_826

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

August 24, 2018 Ahmad Gohar 2 Comments
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 workSo 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
author avatar
Ahmad Gohar
With over 18 years of experience in software architecture, Java technologies, and leadership, I specialize in crafting scalable, future-proof solutions for global organizations. Whether it’s transforming legacy systems, building cutting-edge cloud-native applications, or mentoring teams to excel, I’m committed to delivering value-driven results.

2 Comments

Leave A Comment