博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Docker Swarm Overview
阅读量:4031 次
发布时间:2019-05-24

本文共 2923 字,大约阅读时间需要 9 分钟。

Docker Swarm overview

Docker Swarm is native clustering for Docker. It turns a pool of Docker hostsinto a single, virtual Docker host. Because Docker Swarm serves the standardDocker API, any tool that already communicates with a Docker daemon can useSwarm to transparently scale to multiple hosts. Supported tools include, butare not limited to, the following:

  • Dokku
  • Docker Compose
  • Krane
  • Jenkins

And of course, the Docker client itself is also supported.

Like other Docker projects, Docker Swarm follows the “swap, plug, and play”principle. As initial development settles, an API will develop to enablepluggable backends. This means you can swap out the scheduling backendDocker Swarm uses out-of-the-box with a backend you prefer. Swarm’s swappable design provides a smooth out-of-box experience for most use cases, and allows large-scale production deployments to swap for more powerful backends, like Mesos.

Understand swarm creation

The first step to creating a swarm on your network is to pull the Docker Swarm image. Then, using Docker, you configure the swarm manager and all the nodes to run Docker Swarm. This method requires that you:

  • open a TCP port on each node for communication with the swarm manager
  • install Docker on each node
  • create and manage TLS certificates to secure your swarm

As a starting point, the manual method is best suited for experienced administrators or programmers contributing to Docker Swarm. The alternative is to use docker-machine to install a swarm.

Using Docker Machine, you can quickly install a Docker Swarm on cloud providers or inside your own data center. If you have VirtualBox installed on your local machine, you can quickly build and explore Docker Swarm in your local environment. This method automatically generates a certificate to secure your swarm.

Using Docker Machine is the best method for users getting started with Swarm for the first time. To try the recommended method of getting started, see .

If you are interested manually installing or interested in contributing, see .

Discovery services

To dynamically configure and manage the services in your containers, you use a discovery backend with Docker Swarm. For information on which backends are available, see the documentation.

Advanced Scheduling

To learn more about advanced scheduling, see the and documents.

Swarm API

The is compatible withthe , and extends itwith some new endpoints.

Getting help

Docker Swarm is still in its infancy and under active development. If you needhelp, would like to contribute, or simply want to talk about the project withlike-minded individuals, we have a number of open channels for communication.

  • To report bugs or file feature requests: please use the .

  • To talk about the project with people in real time: please join the #docker-swarm channel on IRC.

  • To contribute code or documentation changes: please submit a .

For more information and resources, please visit the .

转载地址:http://jnhbi.baihongyu.com/

你可能感兴趣的文章
C++获取文件大小常用技巧分享
查看>>
未来5年大机遇:做贩卖多巴胺的超级玩家
查看>>
关于AIS编码解码的两个小问题
查看>>
GitHub 万星推荐:黑客成长技术清单
查看>>
可以在线C++编译的工具站点
查看>>
关于无人驾驶的过去、现在以及未来,看这篇文章就够了!
查看>>
所谓的进步和提升,就是完成认知升级
查看>>
昨夜今晨最大八卦终于坐实——人类首次直接探测到了引力波
查看>>
如何优雅、机智地和新公司谈薪水?
查看>>
为什么读了很多书,却学不到什么东西?
查看>>
长文干货:如何轻松应对工作中最棘手的13种场景?
查看>>
如何确保自己的Mac数据安全呢?这里有四个“小秘诀”
查看>>
如何用好碎片化时间,让思维更有效率?
查看>>
第一性原理:戳中问题本质的人是怎么思考的?
查看>>
No.147 - LeetCode1108
查看>>
No.148 - LeetCode771
查看>>
No.174 - LeetCode1305 - 合并两个搜索树
查看>>
No.175 - LeetCode1306
查看>>
No.176 - LeetCode1309
查看>>
No.182 - LeetCode1325 - C指针的魅力
查看>>