Amazon ECR currently supports private images. See official AWS ECR FAQ:
https://aws.amazon.com/ecr/faqs/
Q: Can Amazon ECR host public container images?
Amazon ECR currently supports private images. However, using IAM resource-based permissions, you can configure policies for each repository to allow access to IAM users, roles, or other AWS accounts.
You can use Docker Hub or other public repositories.