ping - the Intelligent Visibility blog

Quick Workaround for Docker CLI Version 27.x Issue (5402)

Written by Robert Misior | Jan 17, 2025 4:13:32 PM

If you're using Docker CLI version 27.2.0 non-interactively with --password or --password-stdin and it hangs without returning any error or message, one possible workaround is to provide the full URL to the registry, including the protocol (HTTPS), rather than just the domain or URI without specifying the protocol.

 

For example, when using Amazon Elastic Container Registry (AWS ECR) and following the provided "Push Commands," if the Docker command hangs during login, such as in this command:

aws ecr get-login-password --region us-east-1 | docker login

--username AWS --password-stdin

XXXXXX-id-XXXXX.dkr.ecr.us-east-1.amazonaws.com

Try this instead:

aws ecr get-login-password --region us-east-1 | docker login

--username AWS --password-stdin

https://XXXXXX-id-XXXXX.dkr.ecr.us-east-1.amazonaws.com/hello-repository

This ensures the full URL (including the https:// protocol) is provided, which may resolve the hanging issue.