Docker Community Forums

Share and learn in the Docker community.

How to fix "Error setting machine configuration from flags provided: Invalid region specified"

Expected behavior

EC2 instance being created on AWS just like in the past

Actual behavior

Docker throwing “Error setting machine configuration from flags provided: Invalid region specified”

Additional Information

Today I’ve tried to create EC2 instance by running docker-machine create --driver amazonec2 [creds] --amazonec2-region eu-west-2 [instance_name]
and for some reason it started throwing the above error. Couple of months ago it worked just fine.
eu-west-2 indicates London.

Steps to reproduce the behavior

Latest Linux Mint (20.04)
Docker-Machine version 0.8.2, build e18a919