This looks similar to an error we started seeing on Friday, in a repo that was previously deploying OK.
We are also pushing docker images to ECR but we are using python and deploying via a BitBucket pipeline.
Friday coincided with the release of pulumi_docker-3.2.0
We were able to work around this error by pinning our import of pulumi_docker to version 3.1.0.