Cloud Techies
Published in

Cloud Techies

Docker setup on Windows


  1. Install Docker Desktop for Windows.

2. Install WSL2.

3. Make sure awscli is up to date.

4. Run the following command to login to the ECR repo.

aws ecr get-login-password --region <aws-region> | docker login --username AWS --password-stdin <ecr-repo-name>

Or if you are using an older awscli, you can try

aws ecr get-login --no-include-email --region <aws-region> > ./

Then run the shell file —

5. If you encounter error in step 4 →

Error saving credentials: error storing credentials - err: exit status 1

then you need to rename the following exe file.

And also rename ~/.docker/config.json to ~/.docker/config.json.original

Run the shell script again.

Copy AWS ECR repo between 2 AWS accounts

1. To pull a repo:

docker pull <repo/image>

2. Create the same repo in second account.

aws ecr create-repository — repository-name <repo-name> --profile account2

3. Tag the image and push to target repo.

docker tag <account1-image> <account2-image>docker push <account2-image>



A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Arun Kumar

Cloud Architect | AWS, GCP, Azure, Python, Kubernetes, Terraform, Ansible