I decided it myself. the answer is here
first do
aws configure
This will ask you some questions, such as security identifier and key. You should get this information from the aws control panel.
aws ec2 describe-subnets
. AvailabilityZone Id
docker-machine create
, , ( us-east-1c c)
Running pre-create checks...
Creating machine...
(aws01) Launching instance...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with ubuntu(systemd)...
Installing Docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: docker-machine env aws01