terraform-aws-gitlab-runner icon indicating copy to clipboard operation
terraform-aws-gitlab-runner copied to clipboard

AWS Docker Autoscaler: error pulling docker image

Open vpotap opened this issue 1 year ago • 0 comments
trafficstars

I'm experiencing an issue with the GitLab Runner using image al2023-ami-ecs-hvm-2023.0.20241010-kernel-6.1-x86_64 when trying to use the "docker-autoscaler" on AWS. Below are the details :

00:22
Preparing the "docker-autoscaler" executor
Dialing instance i-1234567890abcdef0...
Instance i-1234567890abcdef0 connected
Using Docker executor with image alpine:latest ...
Pulling docker image alpine:latest ...
WARNING: Failed to pull image with policy "always": Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) (manager.go:237:15s)
ERROR: Job failed: failed to pull image "alpine:latest" with specified policies [always]: Error response from daemon: Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) (manager.go:237:15s)

Running from runner instance curl https://registry-1.docker.io/v2/ returns: {"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":null}]}

Running from runner instance command docker pull alpine:latest works correctly

vpotap avatar Oct 21 '24 14:10 vpotap