Error creating DigitalOcean droplet using docker-machine

Not sure if it’s a DigitalOcean problem or docker-machine but I get this error repeatedly while trying to create a droplet on DO

$ docker-machine create --driver digitalocean --digitalocean-access-token=$TOKEN --digitalocean-region=sgp1 --digitalocean-image=ubuntu-14-04-x64 --digitalocean-size "1gb" staging
   Running pre-create checks...
   Creating machine...
   (staging) Creating SSH key...
   (staging) Creating Digital Ocean droplet...
   (staging) 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(upstart)...
   Installing Docker...
   Copying certs to the local machine directory...
   Copying certs to the remote machine...
   Error creating machine: Error running provisioning: Get dial tcp: lookup on read udp> i/o timeout

I am using following docker packages on Ubuntu 14.04

 $ docker-machine version
   docker-machine version 0.7.0, build a650a40
   $ docker version
    Version:      1.11.2
    API version:  1.23
    Go version:   go1.5.4
    Git commit:   b9f10c9
    Built:        Wed Jun  1 21:47:50 2016
    OS/Arch:      linux/amd64
    Version:      1.11.1
    API version:  1.23
    Go version:   go1.5.4
    Git commit:   5604cbe
    Built:        Wed Apr 27 00:34:20 2016
    OS/Arch:      linux/amd64

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Not 100% sure but I solved the problem as following. I was developing in virtualbox machine and I ran the command when I started work

eval "$(docker-machine env local)"

So my docker-machine env was set to some variables, because of which running docker-machine create in the same terminal was causing DNS resolution problem.

Just started a new terminal and was able to create a DigitalOcean droplet without any problem.

Hi @kampta

It looks like a DNS issue to me. It’s trying to resolve “” on port 53 (DNS), but it seems that is not a proper DNS server.

Can you ping on your server ?

This comment has been deleted