I'm unable to create a docker machine using the access token generated by my DigitalOcean account

This is the error that I get:

$ docker-machine create --driver digitalocean --digitalocean-access-token=<my_token> flask
Running pre-create checks...
Creating machine...
(flask) Creating SSH key...
(flask) Creating Digital Ocean droplet...
Error creating machine: Error in driver during machine creation: POST 422 You specified an invalid image for Droplet creation.

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.

Try adding --digitalocean-image docker to your docker-machine command. The error being displayed is because the DigitalOcean API is not being sent a proper image ID or slug to know which disk image to use when creating your droplet.