To get the user & password, execute:
aws ecr get-login --no-include-email --region us-foo-1
That will return
docker login -u AWS -p dwN0wzJXejF== https://123456789.dkr.ecr.us-foo-1.amazonaws.com
Which contains the user, password and docker registry public domain. Set them as basic authentication in your postman or in your curl
curl --location --request GET 'http://192.168.0.20:5000/v2/_catalog' --header 'Authorization: Basic *****'
response will be empty but after some pulls:
{
"repositories": [
"ubuntu"
]
}
request
curl --location --request GET 'https://123456789.dkr.ecr.us-foo-1.amazonaws.com/v2/ubuntu/tags/list' --header 'Authorization: Basic *****'
response
{
"name": "ubuntu",
"tags": [
"1.0.0", "1.0.2", "1.0.3"
]
}