mirror of https://github.com/docker/docs.git
engine(swarm): update example redis tags
The previous tag examples were too old and no longer exist. Updated to latest n and n-1 patch versions. Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
parent
3ea0cd758d
commit
590bd6da0c
|
|
@ -762,7 +762,7 @@ $ docker service create \
|
||||||
--replicas 9 \
|
--replicas 9 \
|
||||||
--name redis_2 \
|
--name redis_2 \
|
||||||
--placement-pref 'spread=node.labels.datacenter' \
|
--placement-pref 'spread=node.labels.datacenter' \
|
||||||
redis:3.0.6
|
redis:7.4.0
|
||||||
```
|
```
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
|
|
@ -786,7 +786,7 @@ $ docker service create \
|
||||||
--name redis_2 \
|
--name redis_2 \
|
||||||
--placement-pref 'spread=node.labels.datacenter' \
|
--placement-pref 'spread=node.labels.datacenter' \
|
||||||
--placement-pref 'spread=node.labels.rack' \
|
--placement-pref 'spread=node.labels.rack' \
|
||||||
redis:3.0.6
|
redis:7.4.0
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also use placement preferences in conjunction with placement constraints
|
You can also use placement preferences in conjunction with placement constraints
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ node and launches replica tasks on a node with `Active` availability.
|
||||||
[rolling update](rolling-update.md) tutorial, start it now:
|
[rolling update](rolling-update.md) tutorial, start it now:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ docker service create --replicas 3 --name redis --update-delay 10s redis:3.0.6
|
$ docker service create --replicas 3 --name redis --update-delay 10s redis:7.4.0
|
||||||
|
|
||||||
c5uo6kdmzpon37mgj9mwglcfw
|
c5uo6kdmzpon37mgj9mwglcfw
|
||||||
```
|
```
|
||||||
|
|
@ -53,9 +53,9 @@ tasks to different nodes:
|
||||||
$ docker service ps redis
|
$ docker service ps redis
|
||||||
|
|
||||||
NAME IMAGE NODE DESIRED STATE CURRENT STATE
|
NAME IMAGE NODE DESIRED STATE CURRENT STATE
|
||||||
redis.1.7q92v0nr1hcgts2amcjyqg3pq redis:3.0.6 manager1 Running Running 26 seconds
|
redis.1.7q92v0nr1hcgts2amcjyqg3pq redis:7.4.0 manager1 Running Running 26 seconds
|
||||||
redis.2.7h2l8h3q3wqy5f66hlv9ddmi6 redis:3.0.6 worker1 Running Running 26 seconds
|
redis.2.7h2l8h3q3wqy5f66hlv9ddmi6 redis:7.4.0 worker1 Running Running 26 seconds
|
||||||
redis.3.9bg7cezvedmkgg6c8yzvbhwsd redis:3.0.6 worker2 Running Running 26 seconds
|
redis.3.9bg7cezvedmkgg6c8yzvbhwsd redis:7.4.0 worker2 Running Running 26 seconds
|
||||||
```
|
```
|
||||||
|
|
||||||
In this case the swarm manager distributed one task to each node. You may
|
In this case the swarm manager distributed one task to each node. You may
|
||||||
|
|
@ -92,10 +92,10 @@ task assignments for the `redis` service:
|
||||||
$ docker service ps redis
|
$ docker service ps redis
|
||||||
|
|
||||||
NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR
|
NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR
|
||||||
redis.1.7q92v0nr1hcgts2amcjyqg3pq redis:3.0.6 manager1 Running Running 4 minutes
|
redis.1.7q92v0nr1hcgts2amcjyqg3pq redis:7.4.0 manager1 Running Running 4 minutes
|
||||||
redis.2.b4hovzed7id8irg1to42egue8 redis:3.0.6 worker2 Running Running About a minute
|
redis.2.b4hovzed7id8irg1to42egue8 redis:7.4.0 worker2 Running Running About a minute
|
||||||
\_ redis.2.7h2l8h3q3wqy5f66hlv9ddmi6 redis:3.0.6 worker1 Shutdown Shutdown 2 minutes ago
|
\_ redis.2.7h2l8h3q3wqy5f66hlv9ddmi6 redis:7.4.0 worker1 Shutdown Shutdown 2 minutes ago
|
||||||
redis.3.9bg7cezvedmkgg6c8yzvbhwsd redis:3.0.6 worker2 Running Running 4 minutes
|
redis.3.9bg7cezvedmkgg6c8yzvbhwsd redis:7.4.0 worker2 Running Running 4 minutes
|
||||||
```
|
```
|
||||||
|
|
||||||
The swarm manager maintains the desired state by ending the task on a node
|
The swarm manager maintains the desired state by ending the task on a node
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,8 @@ notoc: true
|
||||||
|
|
||||||
In a previous step of the tutorial, you [scaled](scale-service.md) the number of
|
In a previous step of the tutorial, you [scaled](scale-service.md) the number of
|
||||||
instances of a service. In this part of the tutorial, you deploy a service based
|
instances of a service. In this part of the tutorial, you deploy a service based
|
||||||
on the Redis 3.0.6 container tag. Then you upgrade the service to use the
|
on the Redis 7.4.0 container tag. Then you upgrade the service to use the
|
||||||
Redis 3.0.7 container image using rolling updates.
|
Redis 7.4.1 container image using rolling updates.
|
||||||
|
|
||||||
1. If you haven't already, open a terminal and ssh into the machine where you
|
1. If you haven't already, open a terminal and ssh into the machine where you
|
||||||
run your manager node. For example, the tutorial uses a machine named
|
run your manager node. For example, the tutorial uses a machine named
|
||||||
|
|
@ -23,7 +23,7 @@ Redis 3.0.7 container image using rolling updates.
|
||||||
--replicas 3 \
|
--replicas 3 \
|
||||||
--name redis \
|
--name redis \
|
||||||
--update-delay 10s \
|
--update-delay 10s \
|
||||||
redis:3.0.6
|
redis:7.4.0
|
||||||
|
|
||||||
0u6a4s31ybk7yw2wyvtikmu50
|
0u6a4s31ybk7yw2wyvtikmu50
|
||||||
```
|
```
|
||||||
|
|
@ -61,7 +61,7 @@ Redis 3.0.7 container image using rolling updates.
|
||||||
Parallelism: 1
|
Parallelism: 1
|
||||||
Delay: 10s
|
Delay: 10s
|
||||||
ContainerSpec:
|
ContainerSpec:
|
||||||
Image: redis:3.0.6
|
Image: redis:7.4.0
|
||||||
Resources:
|
Resources:
|
||||||
Endpoint Mode: vip
|
Endpoint Mode: vip
|
||||||
```
|
```
|
||||||
|
|
@ -70,7 +70,7 @@ Redis 3.0.7 container image using rolling updates.
|
||||||
applies the update to nodes according to the `UpdateConfig` policy:
|
applies the update to nodes according to the `UpdateConfig` policy:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ docker service update --image redis:3.0.7 redis
|
$ docker service update --image redis:7.4.1 redis
|
||||||
redis
|
redis
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -100,7 +100,7 @@ Redis 3.0.7 container image using rolling updates.
|
||||||
Parallelism: 1
|
Parallelism: 1
|
||||||
Delay: 10s
|
Delay: 10s
|
||||||
ContainerSpec:
|
ContainerSpec:
|
||||||
Image: redis:3.0.7
|
Image: redis:7.4.1
|
||||||
Resources:
|
Resources:
|
||||||
Endpoint Mode: vip
|
Endpoint Mode: vip
|
||||||
```
|
```
|
||||||
|
|
@ -135,16 +135,16 @@ Redis 3.0.7 container image using rolling updates.
|
||||||
$ docker service ps redis
|
$ docker service ps redis
|
||||||
|
|
||||||
NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR
|
NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR
|
||||||
redis.1.dos1zffgeofhagnve8w864fco redis:3.0.7 worker1 Running Running 37 seconds
|
redis.1.dos1zffgeofhagnve8w864fco redis:7.4.1 worker1 Running Running 37 seconds
|
||||||
\_ redis.1.88rdo6pa52ki8oqx6dogf04fh redis:3.0.6 worker2 Shutdown Shutdown 56 seconds ago
|
\_ redis.1.88rdo6pa52ki8oqx6dogf04fh redis:7.4.0 worker2 Shutdown Shutdown 56 seconds ago
|
||||||
redis.2.9l3i4j85517skba5o7tn5m8g0 redis:3.0.7 worker2 Running Running About a minute
|
redis.2.9l3i4j85517skba5o7tn5m8g0 redis:7.4.1 worker2 Running Running About a minute
|
||||||
\_ redis.2.66k185wilg8ele7ntu8f6nj6i redis:3.0.6 worker1 Shutdown Shutdown 2 minutes ago
|
\_ redis.2.66k185wilg8ele7ntu8f6nj6i redis:7.4.0 worker1 Shutdown Shutdown 2 minutes ago
|
||||||
redis.3.egiuiqpzrdbxks3wxgn8qib1g redis:3.0.7 worker1 Running Running 48 seconds
|
redis.3.egiuiqpzrdbxks3wxgn8qib1g redis:7.4.1 worker1 Running Running 48 seconds
|
||||||
\_ redis.3.ctzktfddb2tepkr45qcmqln04 redis:3.0.6 mmanager1 Shutdown Shutdown 2 minutes ago
|
\_ redis.3.ctzktfddb2tepkr45qcmqln04 redis:7.4.0 mmanager1 Shutdown Shutdown 2 minutes ago
|
||||||
```
|
```
|
||||||
|
|
||||||
Before Swarm updates all of the tasks, you can see that some are running
|
Before Swarm updates all of the tasks, you can see that some are running
|
||||||
`redis:3.0.6` while others are running `redis:3.0.7`. The output above shows
|
`redis:7.4.0` while others are running `redis:7.4.1`. The output above shows
|
||||||
the state once the rolling updates are done.
|
the state once the rolling updates are done.
|
||||||
|
|
||||||
## Next steps
|
## Next steps
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue