Docker push to ECR failing with "no basic auth credentials"

I just had the same issue. Solution was to adjust the ~/.docker/config.json to the following format:
{
“auths”: {
https://12345.dkr.ecr.eu-central-1.amazonaws.com”: {
“auth”: “QErf24…”
}
}
}

1 Like