Why am I seeing docker: Error response from daemon: Please run 'docker login'. when I am logged in on Docker Desktop!

I recently faced this issue and I want to share my resolution and other ways to solve.

issue:

docker: Error response from daemon: Please run 'docker login'.

Why am I seeing this error? Well docker is having a hard time trying to identify you credentials. Here are few things to try

  • Run docker login

    • This may be redundant but if you have not already ensure you are actually logged in

  • run docker logout then docker login

    • sometimes the sessions have be invalidated by some factor.

  • remove your docker config

    • Your credentials are stored in docker config. so if you are mac run rm ~/.docker/config.json

  • uninstall docker desktop

  • uninstall docker-cli

Previous
Previous

Reflection/Look forward - 2023

Next
Next

Proxy servers explained