官术网_书友最值得收藏!

  • Docker on Windows
  • Elton Stoneman
  • 308字
  • 2021-07-02 19:53:16

Docker swarm

Docker has the ability to run on a single machine or as one node in a cluster of machines all running Docker. This cluster is called a swarm, and you don't need to install anything extra to run in swarm mode. You install Docker on a set of machines, and on the first you run docker swarm init to initialize the swarm, and on the others you run docker swarm join to join the swarm.

I will cover swarm mode in depth in Chapter 7, Orchestrating Distributed Solutions with Docker Swarm, but it's important to know before you get much further that the Docker platform has high availability, scale, and resilience built in. Your Docker journey will hopefully lead you to production, where you'll need all these attributes.

In swarm mode Docker uses exactly the same artifacts, so you can run your app across 50 containers in a 20-node swarm, and the functionality will be the same as when you run it in a single container on your laptop. On the swarm, your app is more performant and tolerant of failure, and you'll be able to perform automated rolling updates to new versions.

Nodes in a swarm use secure encryption for all communication, using trusted certificates for each node. You can store application secrets as encrypted data in the swarm too, so database connection strings and API keys can be saved securely, and the swarm will deliver them only to containers that need them.

Docker is an established platform. It's new to Windows Server 2016, but it arrived on Windows after four years of releases on Linux. Docker is written in Go, which is a cross-platform language, and only a minority of code is specific to Windows. When you run Docker on Windows, you're running an application platform that has had years of successful production use.

主站蜘蛛池模板: 宕昌县| 浦北县| 景洪市| 阳谷县| 东乡族自治县| 施秉县| 苍梧县| 乌海市| 青州市| 霍城县| 阳谷县| 佛山市| 绥阳县| 沅陵县| 措美县| 宝清县| 公安县| 名山县| 轮台县| 五寨县| 敦化市| 寿光市| 江都市| 镇江市| 九龙城区| 满城县| 河西区| 湟中县| 抚顺市| 乌鲁木齐市| 武山县| 泸定县| 厦门市| 松江区| 贵德县| 莲花县| 元朗区| 句容市| 拉孜县| 内丘县| 安顺市|