Single car Roy in docker 1.12

I would like to create a file docker-composein my development environment and use it to deploy a single swarm machine. The goal would be to make the development environment as consistent as possible with the CI, QA, and Prod environments.

I used docker a year + ago, but a lot has changed, and I am very interested in using 1.12 as my platform. My questions are as follows:

  • What is the difference between a "node" and a "physical machine"? Can a single machine (aka, a developer's laptop) host multiple nodes? I assume that node is virtual and that I should have more than one, but don't feel confident.
  • Assuming the answer to # 1 is that it is possible ... is there any reason that these various nodes cannot be a “work swarm” along with a single “manager”, all working on a laptop?

Note. I know that with the help of VM it will be possible to emulate other machines - many of these examples start with this, but I want to not start any virtual machines in order to reduce the cost of resources for running this installation.

Are there any good examples of single node swarms to which people can refer me?

+4
source share
1 answer

A node - , ( init join). ( 0 1), . , , .

, . , , , . , . docker service, docker swarm init , .

+4

All Articles