These are not the same
docker tag api-service:latest 123456789012.dkr.ecr.eu-west-1.amazonaws.com/api:latest
docker push 123456789012.dkr.ecr.eu-west-1.amazonaws.com/api:latest
docker tag api-service:latest 123456789012.dkr.ecr.eu-west-1.amazonaws.com/api-service:latest
docker push 123456789012.dkr.ecr.eu-west-1.amazonaws.com/api-service:latest
Maybe this is obvious for future me. But this is the stupid thing I was doing expecting the first command to work when I docker pushed. Need to further investigate what was actually being pushed in the first case?