You are currently viewing Docker Machine

Docker Machine

Docker Machine

Hello Everyone

Welcome to CloudAffaire and this is Debjeet.

In the last blog post, we have discussed docker stack.

https://cloudaffaire.com/docker-stack/

In this blog post, we will discuss docker machine. We will also create a docker swarm manager node in AWS EC2 using docker machine.

Prerequisite for this demo:

  • AWS EC2 Linux 2 instance with internet access
  • Docker 1.2 and above
  • AWS CLI
  • IAM user with programmatic access to create and manage EC2 instance
  • Your AWS VPC, subnet, Availability zone and Security Group information

What is a docker machine?

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 Azure, AWS, or Digital Ocean.

Using docker-machine commands, you can start, inspect, stop, and restart a managed host, upgrade the Docker client and daemon, and configure a Docker client to talk to your host.

Next, we are going to create a docker swarm manager in AWS using docker machine.

Docker Machine Demo:

Docker Machine

Docker Machine

Hope you have enjoyed this article. In the next blog post, we will discuss how to create docker swarm cluster in AWS EC2.

To get more details on docker, please refer below docker documentation

https://docs.docker.com/