1 Answer
- Newest
- Most votes
- Most comments
1
Hello Smotrov,
The error suggests that there's an issue with pulling the container image from Amazon Elastic Container Registry (ECR). This error is likely related to a change in the media type being used by the container image manifest.
To resolve:
-
Update Docker CLI and Engine: Make sure Docker is up to date.
-
Specify Image Manifest Type: Use the following command to push the image with a compatible format:
docker buildx build --platform linux/amd64,linux/arm64 --output "type=image,push=true,oci-mediatypes=false,name=your-repo:your-tag" .
-
Update AWS CDK: Ensure your AWS CDK version is up to date.
-
Rebuild and Push Image:
docker build -t your-repo:your-tag . docker push your-repo:your-tag
-
Review ECS Task Definition: Verify the image URI and credentials in your ECS task definition.
If the problem persists, please provide more information.
Relevant content
- asked 5 months ago
- asked a year ago
- AWS OFFICIALUpdated a year ago
Thank you for your prompt answer. But I do not doing docker build/push manually. It is done through CDK and CDK is a part of my CI/CD
Thanks for the information.
You can try:
Update AWS CDK:
Configure Docker Image Format in CDK:
Check ECR Repository Configuration: Ensure your ECR repository supports the image types you are using.
Review and Update CI/CD Pipeline: Ensure the pipeline uses the updated CDK configurations.
Rebuild and Redeploy: Trigger a new build and deployment in your CI/CD pipeline.
Check IAM Permissions: Ensure the IAM role used by the CI/CD pipeline has the necessary permissions for ECR.
If the issue persists, please provide more details about your CDK and CI/CD setup.
Fixed with docker desktop reset / reinstall. Thank you so much!