The error looks as follows
PS C:\Program Files\Amazon\AWSCLI> docker push 148488018616.dkr.ecr.ap-south-1.amazonaws.com/strapi
The push refers to repository [148488018616.dkr.ecr.ap-south-1.amazonaws.com/strapi]
no basic auth credentials
PS C:\Program Files\Amazon\AWSCLI>
The error can be resolved as follows:
- Connect your AWS account using CLI
- Get the password as below:
PS C:\Program Files\Amazon\AWSCLI> aws ecr get-login –no-include-email –region ap-south-1
3. This will give you a long string. Copy the whole string and enter the same at the CLI
4. This will show you a successful login and try to upload the docker image again and see that it comes success
How useful was this post?
Click on a star to rate it!
Average rating / 5. Vote count:
We are sorry that this post was not useful for you!
Let us improve this post!
Thanks for your feedback!