I have been battling this issue for a while and all the solutions I found online don’t seem to work
I keep getting
Waiting for machine to be running, this may take a few minutes... Detecting operating system of created instance... Waiting for SSH to be available... Error creating machine: Error detecting OS: Too many retries waiting for SSH to be available. Last error: Maximum number of retries (60) exceeded Exited with code 1
I tried recreating the image and it works, I also checked the status of the container and it is running
ssh keys have no passphrase
What are some quick steps I can take do debug this?
version: 2 jobs: build: machine: true working_directory: ~/appapi steps: - checkout - run: name: Run tests command: | docker-compose -f local.yml up -d docker-compose -f local.yml run django python manage.py help docker-compose -f local.yml run django pytest deploy: machine: true working_directory: ~/appapi steps: - checkout - add_ssh_keys: fingerprints: f1:40:**:^** - run: name: Deploy Master to Digital Ocean command: | cp ./id_rsa_f140****.pub ~/.ssh ls -al ~/.ssh base=https://github.com/docker/machine/releases/download/v0.14.0 && curl -L $base/docker-machine-$(uname -s)-$(uname -m) >/tmp/docker-machine && sudo install /tmp/docker-machine /usr/local/bin/docker-machine mkdir -p .envs/.production docker-machine create --driver generic --generic-ip-address *8.**.**.** --generic-ssh-key ~/.ssh/id_rsa_f1404ab app export COMPOSE_TLS_VERSION=TLSv1_2 eval "$(docker-machine env app)" docker-compose -f production.yml build docker-compose -f production.yml up -d workflows: version: 2 build-and-deploy: jobs: - build - deploy: requires: - build