Docker scout fails to run from cli and asks for login

Issue: When attempting to run scout from cli, I keep getting prompted to login, no matter if I’ve already successfully logged in or not. Anyone else having these issues on windows with wsl2?

OS: Windows 11 23H2

App Version: Docker Desktop 4.48.0, WSL 2.6.1

Steps to Reproduce

  • Open docker desktop application.
  • Open terminal, (defaults to powershell but command prompt fails the same)
  • Type docker login (This returns successful login)
  • Type docker scout quickview alpine (alpine is already in my images but none of them work)
  • Message returned is

Log in with your Docker ID or email address to use docker scout.

If you don’t have a Docker ID, head over to https://hub.docker.com to
create one. You can log in with your password or a Personal Access Token (PAT)
by running docker login.
Using a limited-scope PAT grants better security and is required for organizations
using SSO. Learn more at Personal access tokens | Docker Docs

You can also log in using Docker Desktop.

Hi @brettturek, could you try exiting Docker Desktop then initiate the login from Docker Desktop (not CLI), then try again? Perhaps a restart of your machine could also fix the issue.

The point here is to try logging in via Docker Desktop only but not via CLI then try running docker scout quickview alpine. I’ve tested it on my end and don’t see an issue running the same command.

It could be due to your installation being corrupted as well. Therefore, you may want to try a clean reinstallation:

Hope this helps, thanks.