Using non-AWS container images in Amazon ECS - Amazon Elastic Container Service

Use private registry to store your credentials securely and then reference them in your task definition. This provides a way to reference container images that exist in private registries outside of AWS that require authentication in your task definitions.