Im trying to pull an image from AWS ECR for my builds to use. In order to use the ECR I need to docker login or to use the ECR Docker Credential Helper.
The second is what im trying to do. I install the helper like this via user_data
ERROR: Preparation failed: Error response from daemon: Get https://<repo>:<tag> no basic auth credentials (executor_docker.go:168:0s)
If I look up the generated SSH keys form the machine and manually log into the instance I can just fine enter sudo docker pull ... and I directly get the image.
Im trying to pull an image from AWS ECR for my builds to use. In order to use the ECR I need to
docker login
or to use the ECR Docker Credential Helper.The second is what im trying to do. I install the helper like this via
user_data
but the pull always fails with the message:
If I look up the generated SSH keys form the machine and manually log into the instance I can just fine enter
sudo docker pull ...
and I directly get the image.Why does the automatic pull fail always? 🤔