How is docker machine different from docker engine

722    Asked by ABHISubramaniam in Python , Asked on Jul 28, 2021

I am often confused with the terms Docker machine and Docker engine. Aren't these one and the same?

Answered by Ayushi Khatri

Do you want to know what a docker machine is? If yes then here is the answer for you Docker machine is different from Docker engine and you can't use the two terms interchangeably. Here's how these two are different from each other.


By "Docker" we mean Docker Engine which is a client-server application made up of the Docker daemon, a REST API that specifies interfaces for interacting with the daemon, and a command line interface (CLI) client that talks to the daemon (through the REST API wrapper). Docker Engine accepts docker commands from the CLI, such as docker run , docker ps to list running containers,docker image ls to list images, and so on.

Docker Machine is a tool for provisioning and managing your Dockerized hosts (hosts with Docker Engine on them). Typically, you install Docker Machine on your local system. Docker Machine has its own command line client docker-machine and the Docker Engine client, docker. You can use Machine to install Docker Engine on one or more virtual systems. These virtual systems can be local (as when you use Machine to install and run Docker Engine in VirtualBox on Mac or Windows) or remote (as when you use Machine to provision Dockerized hosts on cloud providers). The Dockerized hosts themselves can be thought of, and are sometimes referred to as, managed “machines”.Hope this gives you a precise idea of their difference.



Your Answer

Interviews

Parent Categories