updating instructions on swarm mode lab to encourage using Play with Docker

This commit is contained in:
Mano Marks 2017-07-25 17:08:12 -07:00
Родитель 2474eb9c93
Коммит b10e4bed6d
2 изменённых файлов: 6 добавлений и 2 удалений

Просмотреть файл

@ -1,13 +1,15 @@
# Docker Swarm Tutorial
> **Note:** This tutorial uses Docker Machine to simulate multiple machines on you desktop. There's an easier way to learn swarm mode, and that is using [Play with Docker](http://training.play-with-docker.com/swarm-mode-intro/). This tutorial is preserved for legacy reasons, and also in case you really want to learn to do this on your own machine.
Docker includes swarm mode for natively managing a cluster of Docker Engines called a swarm. You can use the Docker CLI to create a swarm, deploy application services to a swarm, and manage swarm behavior. This tutorial uses [Docker Machine](https://docs.docker.com/machine/) to create multiple nodes on your desktop. If you prefer you can create those nodes in your own cloud or on multiple machines.
>**Important Note**
> **Important Note**
You don't need to use the Docker CLI to perform these operations. You can use `docker stack deploy --compose-file STACKNAME.yml STACKNAME` instead. For an introduction to using a stack file in a compose file format to deploy an app, check out [Deploying an app to a Swarm](https://github.com/docker/labs/blob/master/beginner/chapters/votingapp.md).
## Preparation
You need to have Docker and Docker Machine installed on your system. [Download Docker](https://docker.com/getdocker) for your platform and install it.
>**Tips:**
> **Tips:**
>
* If you are using Docker for Mac or Docker for Windows, you already have Docker Machine, as it is installed with those applications. See [Download Docker for Mac](https://docs.docker.com/docker-for-mac/#/download-docker-for-mac) and [Download Docker for Windows](https://docs.docker.com/docker-for-windows/#/download-docker-for-windows) for install options and details on what gets installed.
>

Просмотреть файл

@ -2,6 +2,8 @@
$managers=3
$workers=3
# Change the SwitchName to the name of your virtual switch
$SwitchName = "New Virtual Switch"
# create manager machines