#Pull and push container images from and to AWS ECR repositories via Docker CLI
To use the regular Docker CLI with Amazon Elastic Container Registry (Amazon ECR), you need to acquire specific login credentials first. Assuming you already have basic AWS credentials, run the following to pass them to Docker. Note that, below, AWS_ACCOUNT_ID refers to the repository owner, which may not be your own AWS account.