From 629585dfcac4009c70356da4c90b535490913e43 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 13 Jul 2016 01:53:51 +0200 Subject: [PATCH] docs: fix output of node inspect The output uses tabs, but those don't translate well to the rendered output in the docs, so replacing the tabs with spaces. Also updates the output, because REPLICATED, and SPREAD are no longer all-caps in the actual output. Signed-off-by: Sebastiaan van Stijn Upstream-commit: 477a5f8fb0be1244858614cdda2d2528208fc88a Component: engine --- .../swarm/swarm-tutorial/rolling-update.md | 40 +++++++++++-------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/components/engine/docs/swarm/swarm-tutorial/rolling-update.md b/components/engine/docs/swarm/swarm-tutorial/rolling-update.md index e9e814d9bc..5baa63e801 100644 --- a/components/engine/docs/swarm/swarm-tutorial/rolling-update.md +++ b/components/engine/docs/swarm/swarm-tutorial/rolling-update.md @@ -46,17 +46,20 @@ every 10 seconds: ```bash $ docker service inspect redis --pretty - ID: 0u6a4s31ybk7yw2wyvtikmu50 - Name: redis - Mode: REPLICATED - Replicas: 3 + ID: 0u6a4s31ybk7yw2wyvtikmu50 + Name: redis + Mode: Replicated + Replicas: 3 Placement: - Strategy: SPREAD + Strategy: Spread UpdateConfig: - Parallelism: 1 - Delay: 10s + Parallelism: 1 + Delay: 10s ContainerSpec: - Image: redis:3.0.6 + Image: redis:3.0.6 + Resources: + Reservations: + Limits: ``` 4. Now you can update the container image for `redis`. The swarm manager @@ -71,19 +74,22 @@ applies the update to nodes according to the `UpdateConfig` policy: desired state: ```bash - docker service inspect --pretty redis + $ docker service inspect --pretty redis - ID: 0u6a4s31ybk7yw2wyvtikmu50 - Name: redis - Mode: REPLICATED - Replicas: 3 + ID: 0u6a4s31ybk7yw2wyvtikmu50 + Name: redis + Mode: Replicated + Replicas: 3 Placement: - Strategy: SPREAD + Strategy: Spread UpdateConfig: - Parallelism: 1 - Delay: 10s + Parallelism: 1 + Delay: 10s ContainerSpec: - Image: redis:3.0.7 + Image: redis:3.0.7 + Resources: + Reservations: + Limits: ``` 6. Run `docker service tasks ` to watch the rolling update: