Solving Ec2 docker-machine create unable to find a subnet

April 24th, 2017 by thelinuxevangelist

Ec2 docker-machine create unable to find a subnet Solution




This Docker Machine Tip Presents a Troubleshooting for AWS Ec2 Docker Machine create Command Issue ‘unable to find a subnet’.

Docker Machine is a tool that lets you Install Docker Engine on Virtual Hosts, and manage the hosts with docker-machine commands. You can use Machine to create Docker hosts on your local Mac or Windows box, on your company network, in your data center, or on cloud providers like AWS or Digital Ocean.

Solving Ec2 docker-machine create unable to find a subnet - Featured

For a Zone different from ‘a’ You Must specify also Zone parameter like for example:

--amazonec2-zone b

Or otherwise Create a Subnet in Ec2 Console:

Solving Ec2 docker-machine create unable to find a subnet - Ec2 Subnets

To See the Subnets: Search for ‘VPC’ or Select Default VPC on Higher-Right of AWS Console.

Then the docker-machine Command for an ‘Us West 1a’ VM Should be like:

docker-machine create --driver amazonec2 \
--amazonec2-access-key [yourAccssKeyId] \
--amazonec2-secret-key [yourSecretKey] \
--amazonec2-region  us-west-1 \
--amazonec2-zone a \
ec2-sandbox-1404-1
(Visited 13 times, 1 visits today)
Share on Tumblr

Tags: , , , , ,


Comments are disabled