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>
This commit is contained in:
Vincent Demeester 2016-07-14 11:23:03 +02:00
parent dbe310eff0
commit cc651bc642
No known key found for this signature in database
GPG Key ID: 083CC6FD6EB699A3
3 changed files with 1 additions and 11 deletions

View File

@ -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

View File

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

View File

@ -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: