i have a webapp written in php and properly dockerized. docker-compose, docker-watch work like charm. however if it try to deploy the app to AWS’ ECS (former Fargate) i always see this error:
.
.
d3b3296fbfd2: Pushed
58a73444ef77: Pushed
db344eee10a7: Pushed
failed commit on ref "manifest-sha256:xxxxxxxxx": unexpected status from PUT request to https://xxxxxxxx.dkr.ecr.eu-central-1.amazonaws.com/v2/cdk-xxxxx-container-assets-xxxxxx-eu-central-1/manifests/xxxxxxxx: 400 Bad Request
kaeFargate2: fail: docker push xxxxxx.dkr.ecr.eu-central-1.amazonaws.com/cdk-xxxxx-container-assets-xxx-eu-central-1:xxxxxxxxxxxxx exited with error code 1: failed commit on ref "manifest-sha256:xxxxxxxxxxxxxx": unexpected status from PUT request to https://190911453281.dkr.ecr.eu-central-1.amazonaws.com/v2/cdk-xxxxx-container-assets-190911453281-eu-central-1/manifests/xxxxxxxx: 400 Bad Request
i have added
FROM --platform=linux/amd64 webdevops/php-apache-dev:8.2 AS php-with-node
to my Dockerfile, and i have Rosetta enabled.
i also removed
credsStore: osxKeyChain
from .git/config.json
In Elastic Container Registry, the image size is shown as 0 bytes.
i also tried to authenticate in ECR separately with
aws ecr get-login-password --region eu-central-1 --profile xxx | docker login --username AWS --password-stdin xxx.dkr.ecr.eu-central-1.amazonaws.com
and i get
Login Succeeded!
Maybe anyone of you can help me, as i’m running out of ideas.
Regards,
Adrian