Runbook
CannotPullContainer task errors in Amazon Elastic Container Service
Back to Runbooks
Overview
This incident type occurs when a user attempts to create a task in Amazon Elastic Container Service but receives an error message indicating that the container image specified cannot be retrieved. There are several potential troubleshooting areas, including connection timeout, context cancellation, image not found, Docker Hub rate limiting, and pull access denial. To resolve these issues, users may need to configure their VPC, verify their repository URI and image name, set up proper access using the task execution IAM role, or authenticate their Docker client with Amazon ECR.
Parameters
Debug
Check if the task definition specifies an existing container image
Verify the repository URI and the image name
Verify that the task execution IAM role has the proper access
Check the subnet ID of the task
Check the VPC configuration
Check the NAT gateway configuration
The task is launched in a private subnet without a NAT gateway configured to route requests to the internet.
Repair
Specify ENABLED for Auto-assign public IP when launching the task for tasks in public subnets, and specify DISABLED for Auto-assign public IP when launching the task for tasks in private subnets, and configure a NAT gateway in your VPC to route requests to the internet.
change the latest image for task definition
Learn more
Related Runbooks
Check out these related runbooks to help you debug and resolve similar issues.