Question

Unable to verify the Docker daemon is listening

As I was following a tutorial on how to use docker-machine create I got stuck with docker-machine create --digitalocean-size “s-2vcpu-4gb” --driver digitalocean --digitalocean-access-token “token here” “server name”

Creating machine… (keycloakexperiment1) Creating SSH key… (keycloakexperiment1) Creating Digital Ocean droplet… (keycloakexperiment1) 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 ubuntu(systemd)… Installing Docker… 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 It changes, nothing googled makes sense because any fix has to me enacted on creation.

Show comments

Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

Workaround:

docker-machine create \
        --driver digitalocean \
        --digitalocean-access-token $DOTOKEN \
        --engine-install-url "https://releases.rancher.com/install-docker/19.03.9.sh" \
        name;

What I am doing wrong here? I am using Windows 10.

Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\Users\Naeem Ghumman> docker-machine create `
>>         --driver digitalocean `
>>         --digitalocean-access-token a75ab6b9f66f47366d0e5c7b2092fa83744fe87b0df79e2def137ea1d020cb90 `
>>         --engine-install-url "https://releases.rancher.com/install-docker/19.03.9.sh" `
>>         vidly;
Running pre-create checks...
Creating machine...
(vidly) Creating SSH key...
(vidly) Creating Digital Ocean droplet...
Error creating machine: Error in driver during machine creation: POST https://api.digitalocean.com/v2/droplets: 422 You specified an invalid image for Droplet creation.
PS C:\Users\Naeem Ghumman>

This comment has been deleted

    Try DigitalOcean for free

    Click below to sign up and get $200 of credit to try our products over 60 days!

    Sign up

    Get our biweekly newsletter

    Sign up for Infrastructure as a Newsletter.

    Hollie's Hub for Good

    Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

    Become a contributor

    Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

    Welcome to the developer cloud

    DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

    Learn more
    DigitalOcean Cloud Control Panel