Doc that you need an initialized swarm for tutorial (#5871)

You need to initialize your swarm before starting a service on it.
This commit is contained in:
Misty Stanley-Jones 2018-01-30 16:04:38 -08:00 committed by GitHub
parent e14d16d79d
commit 7ca66dc7aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -47,7 +47,15 @@ Docker now exposes Prometheus-compatible metrics on port 9323.
## Configure and run Prometheus
In this example, Prometheus runs as a Docker container on the same host.
In this example, Prometheus runs as a Docker service on a Docker swarm.
> **Prerequisites**
>
> 1. One or more Docker engines are joined into a Docker swarm, using `docker swarm init`
> on one manager and `docker swarm join` on other managers and worker nodes.
>
> 2. You need an internet connection to pull the Prometheus image.
Copy one of the following configuration files and save it to
`/tmp/prometheus.yml` (Linux or Mac) or `C:\tmp\prometheus.yml` (Windows). This