Using Docker Images from the WfD AWS Image Store
All publically available Docker images are stored on Docker hub ([https://hub.docker.com](https://hub.docker.com)), however in some instances there is a requirement to store image in a more private location.
AWS has its own private container store ([https://aws.amazon.com/ecr/](https://aws.amazon.com/ecr/)), that WfD use for any internal application. However, to use images from a private repository the local developer machine first needs to be logged in.
Prerequisites
- Docker desktop installed ([
https://docs.docker.com/docker-for-windows/install/](https://docs.docker.com/docker-for-windows/install/)) - AWS CLI installed ([
https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-windows.html](https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-windows.html))
Details
- Create a new folder under C:\Users*`\ *named '.aws'
- Within the .aws folder create a file called credentials (note, the credentials file should not have a prefix)
- Edit the credentials file in notepad and paste the below into the top of it [default] aws_access_key=AKIA4ANJ64OKTGBPXJOV aws_secret_access_key=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
- Save and close the file
- Open powershell and run 'aws ecr get-login-password --region eu-west-2 --profile default | docker login --username AWS --password-stdin 825527034773.dkr.ecr.eu-west-2.amazonaws.com'.
- If successful, you will see Login Succeeded method
- To test the login, run 'docker pull [
825527034773.dkr.ecr.eu-west-2.amazonaws.com/wfd-ap-api',](//825527034773.dkr.ecr.eu-west-2.amazonaws.com/wfd-ap-api',) which should begin downloading the latest AP API container image