1. 程式人生 > >Docker Engine和Docker Machine 到底有什麼區別?

Docker Engine和Docker Machine 到底有什麼區別?

When people say “Docker” they typically mean Docker Engine, the 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 <image>, docker ps to list running containers, docker images to list images, and so on.

一般當人們說 “Docker”時, 他們一般指的是Docker Engine, 一個client-server 結構的應用, 包含Docker daemon,一個 用來和daemon 互動的REST API, 一個命令列應用CLI。 Docker Engine 在命令列中接收並解析、執行docker  命令, 例如: docker run <image>,  docker ps等。

Docker Engine

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

”.

Docker Machine 是一個建立和管理Docker Hosts 的工具。

Docker Machine