Custom Gitlab runner with docker+machine executor - can't get it to authenticate with ECR

I see that gitlab runner is having this issue for years now: