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]
e79f2bc7044f: Preparing
d202f303fbc3: Preparing
ae61a0f678a1: Preparing
9c8e6df5544b: Preparing
8b4e5778e254: Preparing
924adc920a8e: Preparing
b718290f679e: Preparing
8258ac963d2f: Preparing
df64d3292fd6: Waiting
no basic auth credentials
PS C:\Program Files\Amazon\AWSCLI>

The error can be resolved as follows:

  1. Connect your AWS account using CLI
  2. 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

Tags:

No responses yet

Leave a Reply

Your email address will not be published. Required fields are marked *

Recent Comments