docker_practice/swarm_mode/overview.md

36 lines
1.8 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

##
`Swarm` 使 [`SwarmKit`](https://github.com/docker/swarmkit/) 构建的 Docker 引擎内置(原生)的集群管理和编排工具。
使 `Swarm`
###
Docker `Swarm` `Swarm` Docker `Swarm` (`node`)
(`manager`) (`worker`)
`Swarm` `docker swarm` 退 `docker swarm leave` `Swarm` `leader``leader` `raft`
(`service`)
Docker
![](https://docs.docker.com/engine/swarm/images/swarm-diagram.png)
###
`Task` `Swarm`
`Services`
* `replicated services`
* `global services`
`docker service create` `--mode`
Docker
![](https://docs.docker.com/engine/swarm/images/services-diagram.png)