Difference between revisions of "Docker Swarm on AWS"
From berki WIKI
Line 29: | Line 29: | ||
:[[File:ClipCapIt-180712-222037.PNG]] | :[[File:ClipCapIt-180712-222037.PNG]] | ||
:[[File:ClipCapIt-180712-222143.PNG]] | :[[File:ClipCapIt-180712-222143.PNG]] | ||
+ | |||
+ | |||
+ | <pre> | ||
+ | # docker-machine ls | ||
+ | NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS | ||
+ | docker-sendbox - amazonec2 Running tcp://54.169.84.170:2376 v18.05.0-ce | ||
+ | </pre> |
Revision as of 20:22, 12 July 2018
# docker-machine create --driver amazonec2 \ --amazonec2-instance-type "t2.micro" \ --amazonec2-region ap-southeast-1 \ --amazonec2-open-port 8080 docker-sendbox
Running pre-create checks... Creating machine... (docker-sendbox) 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 docker-sendbox
# docker-machine ls NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS docker-sendbox - amazonec2 Running tcp://54.169.84.170:2376 v18.05.0-ce