Getting Error while try to push image on ECR

I am not able push image on ECR. Please check. Screenshot attached.

Error- no basic auth credentials

You need to authenticate to your registry to be able to push. Try:

docker login 637423196877.dkr.ecr.us-east-1.amazonaws.com

still not working.

It does work. Login successful - you should be able to push the image.

Why are you using sudo? You don’t need to do this as root.