Integrating Docker-Machine with Amazon EC2 -


i reading article shows me how can configure docker vm on top of amazon ec2

https://docs.docker.com/machine/drivers/aws/

i got step

docker-machine create --driver amazonec2 aws01

but error

error pre-create check: "unable find subnet in zone: us-east-1a"

i googled , found thread

https://github.com/docker/machine/issues/1771

but did find worked me.

has been able create vm on top of aws using docker-machine?

i solved myself. putting answer here

first do

aws configure 

this ask questions security id , key. should able information aws dashboard.

aws ec2 describe-subnets 

this list bunch of subnet information. @ first 1 , make note of availabilityzone , subnet id

docker-machine create --driver amazonec2 --amazonec2-subnet-id=xxxx --amazonec2-zone=c aws01 

here enter subnet id noted step 2 , last character of availability zone (so if value us-east-1c enter c)

now see

running pre-create checks... creating machine... (aws01) launching instance... waiting machine running, may take few minutes... detecting operating system of created instance... waiting ssh available... detecting provisioner... provisioning ubuntu(systemd)... installing docker... copying certs local machine directory... copying certs remote machine... setting docker configuration on remote daemon... checking connection docker... docker , running! see how connect docker client docker engine running on virtual machine, run: docker-machine env aws01 

Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -