Browse code

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 <github@gone.nl>
(cherry picked from commit 477a5f8fb0be1244858614cdda2d2528208fc88a)
Signed-off-by: Tibor Vass <tibor@docker.com>

Sebastiaan van Stijn authored on 2016/07/13 08:53:51
Showing 1 changed files
... ...
@@ -46,17 +46,20 @@ every 10 seconds:
46 46
     ```bash
47 47
     $ docker service inspect redis --pretty
48 48
 
49
-    ID:		0u6a4s31ybk7yw2wyvtikmu50
50
-    Name:		redis
51
-    Mode:		REPLICATED
52
-     Replicas:		3
49
+    ID:             0u6a4s31ybk7yw2wyvtikmu50
50
+    Name:           redis
51
+    Mode:           Replicated
52
+     Replicas:      3
53 53
     Placement:
54
-     Strategy:	SPREAD
54
+     Strategy:      Spread
55 55
     UpdateConfig:
56
-     Parallelism:	1
57
-     Delay:		10s
56
+     Parallelism:   1
57
+     Delay:         10s
58 58
     ContainerSpec:
59
-     Image:		redis:3.0.6
59
+     Image:         redis:3.0.6
60
+    Resources:
61
+    Reservations:
62
+    Limits:
60 63
     ```
61 64
 
62 65
 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:
71 71
 desired state:
72 72
 
73 73
     ```bash
74
-    docker service inspect --pretty redis
74
+    $ docker service inspect --pretty redis
75 75
 
76
-    ID:		0u6a4s31ybk7yw2wyvtikmu50
77
-    Name:		redis
78
-    Mode:		REPLICATED
79
-     Replicas:		3
76
+    ID:             0u6a4s31ybk7yw2wyvtikmu50
77
+    Name:           redis
78
+    Mode:           Replicated
79
+     Replicas:      3
80 80
     Placement:
81
-     Strategy:	SPREAD
81
+     Strategy:      Spread
82 82
     UpdateConfig:
83
-     Parallelism:	1
84
-     Delay:		10s
83
+     Parallelism:   1
84
+     Delay:         10s
85 85
     ContainerSpec:
86
-     Image:		redis:3.0.7
86
+     Image:         redis:3.0.7
87
+    Resources:
88
+    Reservations:
89
+    Limits:
87 90
    ```
88 91
 
89 92
 6. Run `docker service tasks <TASK-ID>` to watch the rolling update: