mirror of https://github.com/docker/docs.git
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 cc651bc642e3478062416b50171dbf5595daf4e4) Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
parent
e04733a67e
commit
07bc1eecab
|
|
@ -120,14 +120,11 @@ Labels:
|
||||||
Mode: REPLICATED
|
Mode: REPLICATED
|
||||||
Replicas: 5
|
Replicas: 5
|
||||||
Placement:
|
Placement:
|
||||||
Strategy: Spread
|
|
||||||
UpdateConfig:
|
UpdateConfig:
|
||||||
Parallelism: 0
|
Parallelism: 0
|
||||||
ContainerSpec:
|
ContainerSpec:
|
||||||
Image: nginx:alpine
|
Image: nginx:alpine
|
||||||
Resources:
|
Resources:
|
||||||
Reservations:
|
|
||||||
Limits:
|
|
||||||
Ports:
|
Ports:
|
||||||
Name =
|
Name =
|
||||||
Protocol = tcp
|
Protocol = tcp
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,6 @@ about a service in an easily readable format.
|
||||||
Mode: REPLICATED
|
Mode: REPLICATED
|
||||||
Replicas: 1
|
Replicas: 1
|
||||||
Placement:
|
Placement:
|
||||||
Strategy: SPREAD
|
|
||||||
UpdateConfig:
|
UpdateConfig:
|
||||||
Parallelism: 1
|
Parallelism: 1
|
||||||
ContainerSpec:
|
ContainerSpec:
|
||||||
|
|
|
||||||
|
|
@ -44,22 +44,19 @@ every 10 seconds:
|
||||||
3. Inspect the `redis` service:
|
3. Inspect the `redis` service:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker service inspect redis --pretty
|
$ docker service inspect --pretty redis
|
||||||
|
|
||||||
ID: 0u6a4s31ybk7yw2wyvtikmu50
|
ID: 0u6a4s31ybk7yw2wyvtikmu50
|
||||||
Name: redis
|
Name: redis
|
||||||
Mode: Replicated
|
Mode: Replicated
|
||||||
Replicas: 3
|
Replicas: 3
|
||||||
Placement:
|
Placement:
|
||||||
Strategy: Spread
|
|
||||||
UpdateConfig:
|
UpdateConfig:
|
||||||
Parallelism: 1
|
Parallelism: 1
|
||||||
Delay: 10s
|
Delay: 10s
|
||||||
ContainerSpec:
|
ContainerSpec:
|
||||||
Image: redis:3.0.6
|
Image: redis:3.0.6
|
||||||
Resources:
|
Resources:
|
||||||
Reservations:
|
|
||||||
Limits:
|
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Now you can update the container image for `redis`. The swarm manager
|
4. Now you can update the container image for `redis`. The swarm manager
|
||||||
|
|
@ -81,15 +78,12 @@ desired state:
|
||||||
Mode: Replicated
|
Mode: Replicated
|
||||||
Replicas: 3
|
Replicas: 3
|
||||||
Placement:
|
Placement:
|
||||||
Strategy: Spread
|
|
||||||
UpdateConfig:
|
UpdateConfig:
|
||||||
Parallelism: 1
|
Parallelism: 1
|
||||||
Delay: 10s
|
Delay: 10s
|
||||||
ContainerSpec:
|
ContainerSpec:
|
||||||
Image: redis:3.0.7
|
Image: redis:3.0.7
|
||||||
Resources:
|
Resources:
|
||||||
Reservations:
|
|
||||||
Limits:
|
|
||||||
```
|
```
|
||||||
|
|
||||||
6. Run `docker service tasks <TASK-ID>` to watch the rolling update:
|
6. Run `docker service tasks <TASK-ID>` to watch the rolling update:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue