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>
(cherry picked from commit cc651bc642
)
Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
parent
e04733a67e
commit
07bc1eecab
3 changed files with 1 additions and 11 deletions
|
@ -120,14 +120,11 @@ Labels:
|
|||
Mode: REPLICATED
|
||||
Replicas: 5
|
||||
Placement:
|
||||
Strategy: Spread
|
||||
UpdateConfig:
|
||||
Parallelism: 0
|
||||
ContainerSpec:
|
||||
Image: nginx:alpine
|
||||
Resources:
|
||||
Reservations:
|
||||
Limits:
|
||||
Ports:
|
||||
Name =
|
||||
Protocol = tcp
|
||||
|
|
|
@ -33,7 +33,6 @@ about a service in an easily readable format.
|
|||
Mode: REPLICATED
|
||||
Replicas: 1
|
||||
Placement:
|
||||
Strategy: SPREAD
|
||||
UpdateConfig:
|
||||
Parallelism: 1
|
||||
ContainerSpec:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue