Gitlab CI docs for docker-machine have broken Digital Ocean options
Summary
I was following the documentation here: https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/blob/master/docs/configuration/autoscale.md
I was getting an error when trying to create a droplet on digitial ocean, so I ran docker-machine directly. This command corresponds to the options on that page:
docker-machine create --driver digitalocean \
--digitalocean-access-token [TOKEN] \
--digitalocean-image "coreos-beta" \
--digitalocean-ssh-user core \
--digitalocean-region nyc2 \
--digitalocean-size 4gb \
--digitalocean-private-networking \
docker-sandbox
Running that results in:
Running pre-create checks...
Creating machine...
(docker-sandbox) Creating SSH key...
(docker-sandbox) Creating Digital Ocean droplet...
(docker-sandbox) Waiting for IP address to be assigned to the Droplet...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with coreOS...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Error creating machine: Error running provisioning: Unable to verify the Docker daemon is listening: Maximum number of retries (10) exceeded
Steps to reproduce
- Install docker-machine
- Get a digital ocean token
- Run this command
docker-machine create --driver digitalocean \
--digitalocean-access-token [TOKEN] \
--digitalocean-image "coreos-beta" \
--digitalocean-ssh-user core \
--digitalocean-region nyc2 \
--digitalocean-size 4gb \
--digitalocean-private-networking \
docker-sandbox
Expected behavior
Droplet suitable for Gitlab CI runner created.
Actual behavior
Docker doesn't provision cleanly.
Relevant logs and/or screenshots
(Paste any relevant logs - please use code blocks (```) to format console output, logs, and code as it's very hard to read otherwise.)
Possible fixes
Removing the --digitalocean-image "coreos-beta" and using the default image seems to work better.