Logging in with your password grants your terminal complete access to your account.
For better security, log in with a limited-privilege personal access token. Learn more at https://docs.docker.com/go/access-tokens/
This warning isn't correct. I'm not logging into hub, docker hub PATs are irrelevant here.
Description
I log into my ECR registry like this:
This is the recommended way to log into ECR. https://docs.aws.amazon.com/AmazonECR/latest/userguide/getting-started-cli.html
The Docker CLI gives me a warning about this:
This warning isn't correct. I'm not logging into hub, docker hub PATs are irrelevant here.
Reproduce
docker login --username AWS --password-stdin [my-account-id].dkr.ecr.us-east-1.amazonaws.com
Expected behavior
No warning
docker version
docker info
Additional Info
Note that the warning is here: https://github.com/docker/compose-cli/blob/f09336e5196183de06f359e5598c3f2d7f704809/cli/mobycli/pat_suggest.go
happy to move this bug to that repo. i filed it here because i presume most users don't know/care about the internal cli repo topology.
Originally filed as https://github.com/docker/cli/issues/4058 but moved over here