I was working on other tasks but I got back to this and tried the workarounds again. Here’s what I had to do to get the Extend login step working:
This was the error I saw when trying to run the extend-helper-cli command, above:
# failed to get console mode for stdin: The handle is invalid.
# Error saving credentials: error storing credentials - err: exit status 1, out: `error storing credentials - err: exit status 1, out: `The stub received bad data.``
- Move three Docker credential exes to a backup directory (don’t just delete them):
a.C:\Program Files\Docker\Docker\resources\bin\docker-credential-*.exe
- Replace the contents of
C:\Users\<me>\.docker\config.json
with just empty braces:{}
- Then when you run the Extend Auth step again, it will succeed and complain about storing the password in plaintext in config.json, but actually it stores an auth token
- After logging in successfully and caching the auth token in config.json, copy the exes back into place.