What is the difference between docker host and node?

十年热恋 提交于 2019-12-14 02:58:39

问题


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.

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.

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.

But I am confused about docker node. How it's different from docker host ? When a docker host becomes docker node ?

Thanks for your patience.


回答1:


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.

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.




回答2:


The terms are used interchangeably and there is no difference.



来源:https://stackoverflow.com/questions/48801206/what-is-the-difference-between-docker-host-and-node

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!