Its likely that the old image layers are not being re-built when you are building the image.
Prior to the
docker build, try to force delete all of the depending image layers and see if it helps.
docker rmi -f <ImageID> docker build -t <Image:Tag> . --no-cache docker push <Image:Tag>
Also, it would help us understand the issue if you can provide more context like where and how you are building/deleting these images.
If the above steps do not work, please feel free to reach out to AWS Support for further troubleshooting.
How to deploy ECR private image to Lightsail containersasked 20 days ago
I get a 'forbidden error' when attempting to upload images.asked 2 years ago
How to check if ECR image exists by URI?Accepted Answerasked 11 days ago
What is the cost of container image storage?asked 9 months ago
Is there a way to upload docker image to ECR in multiple steps?asked 2 days ago
How to ensure using the latest lambda layer version when deploying with CloudFormation and SAM?Accepted Answerasked 4 months ago
ECR is not deleting images; how to force layer uploadasked 3 months ago
Solution to delete new ECR images, from PutImage actions, that contain CRITICAL vulnerabilitesasked 2 months ago
How to ensure that the most recent version of a docker container image is being used when deploying a GreenGrass componentAccepted Answerasked a month ago
Amazon Linux 2022 ECR Basic Scanasked 2 months ago