Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are Docker Engine and Docker Machine?

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "what are Docker Engine and Docker Machine". In daily operation, I believe many people have doubts about what Docker Engine and Docker Machine are. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the questions of "what are Docker Engine and Docker Machine?" Next, please follow the editor to study!

Docker Engine and Docker Machine introduce 1 Docker Engine

Docker Engine is also known as "Docker". Docker is generally understood as the docker daemon S model, in which users send REST requests to docker daemon through docker client.

Docker Engine includes the following parts:

The daemon of Docker Daemon-docker, which belongs to server in Chand S.

Docker REST API-docker daemon exposed REST interface

Docker CLI-docker exposed command line interface (Command Line API)

Docker Engine composition diagram

Therefore, there are two ways for the client to access the server

One is to use command-line tools, such as docker run, docker ps....

The other is to call REST API directly, such as sending a curl http request.

Remarks: curl

Curl can help you complete all your browser operations, such as logging in (that is, transferring data), downloading files, uploading files, and so on.

2 Docker Machine

Official explanation:

Docker Machine is a tool for installing Docker Engine on virtual hosts and using the docker-machine command to manage these virtual hosts

Docker Engine runs on the local linux system. If your current system is Linux and you want to run the docker command on it, all you need to do is download and install Docker Egine. However, if you want to create Docker host on the web, on cloud platforms, and locally, you need Docker Machine.

Whether it's Mac,Windows or Linux, you can install Docker Machine on it and use the docker-machine command to create and manage a large number of Docker hosts. It automatically creates the host, installs Docker Engine on the host, and then configures docker client. Each managed host ("machine") is a combination of a Docker host and a configured client.

The specific usage scenarios of the official Docker Machine:

You can use Docker Machine to install and run Docker on Mac or Windows to configure and manage multiple remote Docker hosts to provide Swarm clusters

3 Conceptual differences between Docker Machine and Docker Engine

Docker Engine: mainly used to receive and process docker command requests

Docker Machine: it is mainly used to manage docker-based host (hosts with Docker Engine installed)

Machine

Usually, you install Docker Machine locally. Docker Machine includes its own command line client: docker-machine and Docker Engine's client: docker. You can use Machine to install Docker Engine on one or more virtual machines. These virtual machines can be local or remote. These virtualized hosts can be considered "machine"

4 using Docker Machine

On linux

$curl-L https://github.com/docker/machine/releases/download/v0.13.0/docker-machine-`uname-s`-`uname-m` > / tmp/docker-machine & & chmod + x / tmp/docker-machine & & sudo cp / tmp/docker-machine / usr/local/bin/docker-machine

Check the version

$docker-machine version

Uninstall Docker Machine

# delete the executable file $rm $(docker-machine) # or delete the machine you created, individually delete each machine $docker-machine rm # to delete all machines $docker-machine rm-f $(docker-machine ls-Q) $docker-machine ls$docker-machine create-- driver virtualbox default$docker-machine env default$eval "$(docker-machine env default)" $docker-machine ip default$docker-machine stop default$docker-machine start default, the study of "what are Docker Engine and Docker Machine" ends I hope I can solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report