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

  • Docker on Windows
  • Elton Stoneman
  • 315字
  • 2021-07-02 12:47:53

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 –  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, security, scale and resilience built in. Your Docker journey will hopefully lead you to production, where you'll benefit from all of 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 the containers that need them.

Docker is an established platform. It was new to Windows Server in 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.

主站蜘蛛池模板: 都昌县| 新平| 重庆市| 辰溪县| 连州市| 岳阳县| 玉龙| 什邡市| 兴业县| 五台县| 西昌市| 漳州市| 迭部县| 峡江县| 玛曲县| 中卫市| 大宁县| 安远县| 孝义市| 泉州市| 昌吉市| 津市市| 都匀市| 黑河市| 纳雍县| 唐山市| 柳州市| 沾益县| 裕民县| 嘉义市| 东乌| 松江区| 五峰| 深圳市| 清水县| 陵水| 马龙县| 郸城县| 固安县| 张掖市| 明光市|