ECR Flashcards
1
Q
ECR
A
private Docker image repo of AWS
as alternative to public Docker hub
2
Q
access is controlled (exam)
A
through IAM
so if you need to push or pull to ECR, you need the correct permissions, IAM policy
if you get permission errors - check IAM policy
3
Q
how you can authenticate against ECR using the CLI (exam)
A
- with AWS CLI version one
$(aws ecr get-login –no-include-email –region eu-west-I)
you should run the output of this command
- with AWS CLI version one you use a pipe. The first part of the command is gonna give us the login password. And then the second part of the command
will take the login password as an input, and use it for the command.
$(aws ecr get-login –no-include-email –region eu-west-i) | docker login –username AWS –password-strin |
4
Q
Docker push and pull
A
use the complete image url
docker push
docker pull
5
Q
security
A
data is sent over HTTPS to ECS
ecnryption in flight (HTTPs) and inages are also encrypted at rest