Gitlab CI: Can’t launch runners
If you just came across this while running Gitlab CI docker-machine instance, you may need to update the base AMI image used by docker-image as it’s currently using 16.04 (ouch!)
Some errors you may find in the logs
- Error while stopping machine
- Failed to process runner
- Unable to query docker version: Cannot connect to the docker engine endpoint
- Error creating machine: Error running provisioning: error installing docker: driver=amazonec2 name=runner-xyz
Running with gitlab-runner 14.10.0 (c6bb62f6)
on autoscale-runner y47Kmiji
Preparing the "docker+machine" executor
ERROR: Preparation failed: exit status 1
Will be retried in 3s ...
ERROR: Preparation failed: exit status 1
Will be retried in 3s ...
Find a new image in
Then specify it like
MachineOptions: [
“amazonec2-ami=ami-099b6b870155cb58f”
For more updates see this Gitlab issue (they maintain the fork):
or PR to the original repo: (never merged)
https://github.com/docker/machine/pull/4876/commits/f01f64e62228461aec75491bb24bd4ff04ec34e6