docker / machine

Machine management for a container-centric world
https://docs.docker.com/machine/
Apache License 2.0
6.62k stars 1.97k forks source link

Invalid region specified on eu-north-1 #4854

Open olegbliaher opened 3 years ago

olegbliaher commented 3 years ago

Hi there,

Trying to run the following:

docker-machine -D create --driver amazonec2 --amazonec2-vpc-id vpc-1234567 --amazonec2-subnet-id subnet-123456789 --amazonec2-region=eu-north-1 --amazonec2-zone a aws01

and getting the following:

Docker Machine Version:  0.16.0, build 702c267f
Found binary path at /usr/local/bin/docker-machine
Launching plugin server for driver amazonec2
Plugin server listening at address 127.0.0.1:42337
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(flag-lookup) Calling .GetMachineName
(flag-lookup) Calling .DriverName
(flag-lookup) Calling .GetCreateFlags
Found binary path at /usr/local/bin/docker-machine
Launching plugin server for driver amazonec2
Plugin server listening at address 127.0.0.1:40865
() Calling .GetVersion
Using API Version  1
() Calling .SetConfigRaw
() Calling .GetMachineName
(aws01) Calling .GetMachineName
(aws01) Calling .DriverName
(aws01) Calling .GetCreateFlags
(aws01) Calling .SetConfigFromFlags
Error setting machine configuration from flags provided: Invalid region specified

It works better with other regions, but it's in that region I have a gitlab-runner server that needs to create some nice containers!

Any help would be appreciated.

johanwistrom commented 3 years ago

I am experiencing the same issue even though the code in region.go includes eu-north-1

tvestelind commented 3 years ago

It was added to version 0.16.2, so make sure you are running that version or later.