I need to login to my AWS ECR
repository so it can pull whatever images it needs by using API. I need to translate what aws ecr get-login --no-include-email --registry-ids <registry_id>
command does using Docker API.
For example --
- [Solved] API call needs to be made to AWS in order to get login credentials for docker
- API call for this will give me
base64encoded
string which hasusername
andpassword
- API call for this will give me
- How to use those
AWS creds
in a docker login API (by using Docker Remote API) call (equivalent todocker login -u AWS -p <password> <server_address>
)??
This is what I do -
If you have access to bash -
You could translate the logic into other languages as you wish.