Hello World

Be Happy!

docker-machine create AWS ec2


% aws configure
AWS Access Key ID [****************xxxx]: xxxxxxxxxxxxxxxxxxxx
AWS Secret Access Key [****************xxxx]: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Default region name [us-west-1]: 
Default output format [None]: 

% docker-machine create --driver amazonec2 --amazonec2-region us-west-1 --amazonec2-instance-type t3.micro aws-manager1
Running pre-create checks...
Creating machine...
(aws-manager1) 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 aws-manager1

% docker-machine ls
NAME           ACTIVE   DRIVER       STATE     URL                         SWARM   DOCKER      ERRORS
aws-manager1   -        amazonec2    Running   tcp://xxx.xx.xx.xxx:2376            v19.03.13   
master         -        virtualbox   Running   tcp://192.168.99.100:2376           v19.03.12   
worker1        -        virtualbox   Running   tcp://192.168.99.101:2376           v19.03.12   
worker2        -        virtualbox   Running   tcp://192.168.99.102:2376           v19.03.12  

% docker-machine ssh aws-manager1
Welcome to Ubuntu 16.04.4 LTS (GNU/Linux 4.4.0-1052-aws x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  Get cloud support with Ubuntu Advantage Cloud Guest:
    http://www.ubuntu.com/business/services/cloud

217 packages can be updated.
146 updates are security updates.

New release '18.04.5 LTS' available.
Run 'do-release-upgrade' to upgrade to it.


ubuntu@aws-manager1:~$
#aws (12) #ec2 (2) #docker (21) #aws-cli (4) #docker-machine (1)
List