docker_practice/swarm_mode/overview.md

36 lines
1.8 KiB
Go
Raw Normal View History

#
2017-11-25 09:45:16 +08:00
2017-11-26 09:57:48 +08:00
`Swarm` 使 [`SwarmKit`](https://github.com/docker/swarmkit/) 构建的 Docker 引擎内置(原生)的集群管理和编排工具。
2017-11-26 09:54:16 +08:00
使 `Swarm`
2017-11-25 09:45:16 +08:00
##
2017-11-25 09:45:16 +08:00
Docker `Swarm` `Swarm` Docker `Swarm` (`node`)
(`manager`) (`worker`)
2017-11-26 09:54:16 +08:00
`Swarm` `docker swarm` 退 `docker swarm leave` `Swarm` `leader``leader` `raft`
(`service`)
2017-11-29 10:25:19 +08:00
Docker
![](https://docs.docker.com/engine/swarm/images/swarm-diagram.png)
##
2017-11-26 09:54:16 +08:00
`Task` `Swarm`
`Services`
2017-11-25 09:45:16 +08:00
2017-11-26 09:54:16 +08:00
* `replicated services`
2017-11-25 09:45:16 +08:00
2017-11-26 09:54:16 +08:00
* `global services`
2017-11-25 09:45:16 +08:00
2017-11-26 09:54:16 +08:00
`docker service create` `--mode`
2017-11-29 10:25:19 +08:00
Docker
![](https://docs.docker.com/engine/swarm/images/services-diagram.png)