Browse code

Update service inspect --pretty reference docs

Update the output and fix wrong usage in a tutorial page.

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Vincent Demeester authored on 2016/07/14 18:23:03
Showing 3 changed files
... ...
@@ -119,14 +119,11 @@ Labels:
119 119
 Mode:		REPLICATED
120 120
  Replicas:		5
121 121
 Placement:
122
- Strategy:	Spread
123 122
 UpdateConfig:
124 123
  Parallelism:	0
125 124
 ContainerSpec:
126 125
  Image:		nginx:alpine
127 126
 Resources:
128
-Reservations:
129
-Limits:
130 127
 Ports:
131 128
  Name =
132 129
  Protocol = tcp
... ...
@@ -33,7 +33,6 @@ about a service in an easily readable format.
33 33
     Mode:		REPLICATED
34 34
      Replicas:		1
35 35
     Placement:
36
-     Strategy:	SPREAD
37 36
     UpdateConfig:
38 37
      Parallelism:	1
39 38
     ContainerSpec:
... ...
@@ -44,22 +44,19 @@ every 10 seconds:
44 44
 3. Inspect the `redis` service:
45 45
 
46 46
     ```bash
47
-    $ docker service inspect redis --pretty
47
+    $ docker service inspect --pretty redis
48 48
 
49 49
     ID:             0u6a4s31ybk7yw2wyvtikmu50
50 50
     Name:           redis
51 51
     Mode:           Replicated
52 52
      Replicas:      3
53 53
     Placement:
54
-     Strategy:      Spread
55 54
     UpdateConfig:
56 55
      Parallelism:   1
57 56
      Delay:         10s
58 57
     ContainerSpec:
59 58
      Image:         redis:3.0.6
60 59
     Resources:
61
-    Reservations:
62
-    Limits:
63 60
     ```
64 61
 
65 62
 4. Now you can update the container image for `redis`. The swarm  manager
... ...
@@ -81,15 +78,12 @@ desired state:
81 81
     Mode:           Replicated
82 82
      Replicas:      3
83 83
     Placement:
84
-     Strategy:      Spread
85 84
     UpdateConfig:
86 85
      Parallelism:   1
87 86
      Delay:         10s
88 87
     ContainerSpec:
89 88
      Image:         redis:3.0.7
90 89
     Resources:
91
-    Reservations:
92
-    Limits:
93 90
    ```
94 91
 
95 92
 6. Run `docker service tasks <TASK-ID>` to watch the rolling update: