Browse Source

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 9 years ago
parent
commit
cc651bc642

+ 0 - 3
docs/reference/commandline/service_inspect.md

@@ -119,14 +119,11 @@ Labels:
 Mode:		REPLICATED
  Replicas:		5
 Placement:
- Strategy:	Spread
 UpdateConfig:
  Parallelism:	0
 ContainerSpec:
  Image:		nginx:alpine
 Resources:
-Reservations:
-Limits:
 Ports:
  Name =
  Protocol = tcp

+ 0 - 1
docs/swarm/swarm-tutorial/inspect-service.md

@@ -33,7 +33,6 @@ about a service in an easily readable format.
     Mode:		REPLICATED
      Replicas:		1
     Placement:
-     Strategy:	SPREAD
     UpdateConfig:
      Parallelism:	1
     ContainerSpec:

+ 1 - 7
docs/swarm/swarm-tutorial/rolling-update.md

@@ -44,22 +44,19 @@ every 10 seconds:
 3. Inspect the `redis` service:
 
     ```bash
-    $ docker service inspect redis --pretty
+    $ docker service inspect --pretty redis
 
     ID:             0u6a4s31ybk7yw2wyvtikmu50
     Name:           redis
     Mode:           Replicated
      Replicas:      3
     Placement:
-     Strategy:      Spread
     UpdateConfig:
      Parallelism:   1
      Delay:         10s
     ContainerSpec:
      Image:         redis:3.0.6
     Resources:
-    Reservations:
-    Limits:
     ```
 
 4. Now you can update the container image for `redis`. The swarm  manager
@@ -81,15 +78,12 @@ desired state:
     Mode:           Replicated
      Replicas:      3
     Placement:
-     Strategy:      Spread
     UpdateConfig:
      Parallelism:   1
      Delay:         10s
     ContainerSpec:
      Image:         redis:3.0.7
     Resources:
-    Reservations:
-    Limits:
    ```
 
 6. Run `docker service tasks <TASK-ID>` to watch the rolling update: