AWS ECR Auto-Login with Autoscaling EC2 Gitlab-Runner and Docker-in-Docker

This is such a long title, so again here is what we want to achieve. Autoscaling AWS EC2-based Gitlab-Runner (Spot) instances using docker+machine executors We&apos;re planning to use Docker-in-Docker We also have private AWS ECR Repositories which we want to auto-login to