docker host和node有什么区别?
我知道与SO相似的问题已经被提出。但是,它并没有澄清我在寻找什么。
I know that questions similar to this one is already asked on SO. But, it doesn't make clarification on what I am looking for.
我正试图弄混码头工人。我遇到过术语 docker host
和 docker node
。我指的是这篇文章:- https://docs.docker.com/入门/ part3 /#docker-composeyml 。
I am trying to get my hands dirty on docker. I have encountered the terminology docker host
and docker node
. I am referring this article:- https://docs.docker.com/get-started/part3/#docker-composeyml.
我知道docker host是一台运行一个或多个容器并安装了docker引擎的主机。而且,docker主机可以是物理机,也可以是虚拟机。
I know that docker host is the one, which runs one or more containers and in which docker engine is installed. Moreover, docker host can either be a physical machine or it can be a virtual machine.
但是我对docker节点感到困惑。与docker host有何不同?当Docker主机成为Docker节点时?
But I am confused about docker node. How it's different from docker host ? When a docker host becomes docker node ?
感谢您的耐心等待。
泊坞窗主机是指客户端服务器对中的服务器。这是dockerd引擎的实例,也是容器在其中运行的地方。
A docker host refers to the server in the client server pair. It's the instance of the dockerd engine, and where containers are run.
docker节点是指群集模式集群中的成员。每个swarm节点都必须是docker主机,但并非每个docker主机都不一定是swarm集群的成员。
A docker node refers to a member in a swarm mode cluster. Every swarm node must be a docker host, but not every docker host is necessarily a member of a swarm cluster.