mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #24565 from thaJeztah/fix-node-inspect-formatting
docs: fix output of node inspect
This commit is contained in:
commit
1dbe3f6e89
1 changed files with 23 additions and 17 deletions
|
@ -46,17 +46,20 @@ every 10 seconds:
|
||||||
```bash
|
```bash
|
||||||
$ docker service inspect redis --pretty
|
$ docker service inspect redis --pretty
|
||||||
|
|
||||||
ID: 0u6a4s31ybk7yw2wyvtikmu50
|
ID: 0u6a4s31ybk7yw2wyvtikmu50
|
||||||
Name: redis
|
Name: redis
|
||||||
Mode: REPLICATED
|
Mode: Replicated
|
||||||
Replicas: 3
|
Replicas: 3
|
||||||
Placement:
|
Placement:
|
||||||
Strategy: SPREAD
|
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:
|
||||||
|
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
|
||||||
|
@ -71,19 +74,22 @@ applies the update to nodes according to the `UpdateConfig` policy:
|
||||||
desired state:
|
desired state:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker service inspect --pretty redis
|
$ 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
|
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:
|
||||||
|
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…
Add table
Add a link
Reference in a new issue