Skip to content

Commit 1c78c4e

Browse files
authored
Merge pull request #21337 from dvdksn/update-redis-example-tags
engine(swarm): update example redis tags
2 parents b6f336d + 590bd6d commit 1c78c4e

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

content/manuals/engine/swarm/services.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ $ docker service create \
762762
--replicas 9 \
763763
--name redis_2 \
764764
--placement-pref 'spread=node.labels.datacenter' \
765-
redis:3.0.6
765+
redis:7.4.0
766766
```
767767

768768
> [!NOTE]
@@ -786,7 +786,7 @@ $ docker service create \
786786
--name redis_2 \
787787
--placement-pref 'spread=node.labels.datacenter' \
788788
--placement-pref 'spread=node.labels.rack' \
789-
redis:3.0.6
789+
redis:7.4.0
790790
```
791791

792792
You can also use placement preferences in conjunction with placement constraints

content/manuals/engine/swarm/swarm-tutorial/drain-node.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ node and launches replica tasks on a node with `Active` availability.
4141
[rolling update](rolling-update.md) tutorial, start it now:
4242

4343
```console
44-
$ docker service create --replicas 3 --name redis --update-delay 10s redis:3.0.6
44+
$ docker service create --replicas 3 --name redis --update-delay 10s redis:7.4.0
4545

4646
c5uo6kdmzpon37mgj9mwglcfw
4747
```
@@ -53,9 +53,9 @@ tasks to different nodes:
5353
$ docker service ps redis
5454

5555
NAME IMAGE NODE DESIRED STATE CURRENT STATE
56-
redis.1.7q92v0nr1hcgts2amcjyqg3pq redis:3.0.6 manager1 Running Running 26 seconds
57-
redis.2.7h2l8h3q3wqy5f66hlv9ddmi6 redis:3.0.6 worker1 Running Running 26 seconds
58-
redis.3.9bg7cezvedmkgg6c8yzvbhwsd redis:3.0.6 worker2 Running Running 26 seconds
56+
redis.1.7q92v0nr1hcgts2amcjyqg3pq redis:7.4.0 manager1 Running Running 26 seconds
57+
redis.2.7h2l8h3q3wqy5f66hlv9ddmi6 redis:7.4.0 worker1 Running Running 26 seconds
58+
redis.3.9bg7cezvedmkgg6c8yzvbhwsd redis:7.4.0 worker2 Running Running 26 seconds
5959
```
6060

6161
In this case the swarm manager distributed one task to each node. You may
@@ -92,10 +92,10 @@ task assignments for the `redis` service:
9292
$ docker service ps redis
9393

9494
NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR
95-
redis.1.7q92v0nr1hcgts2amcjyqg3pq redis:3.0.6 manager1 Running Running 4 minutes
96-
redis.2.b4hovzed7id8irg1to42egue8 redis:3.0.6 worker2 Running Running About a minute
97-
\_ redis.2.7h2l8h3q3wqy5f66hlv9ddmi6 redis:3.0.6 worker1 Shutdown Shutdown 2 minutes ago
98-
redis.3.9bg7cezvedmkgg6c8yzvbhwsd redis:3.0.6 worker2 Running Running 4 minutes
95+
redis.1.7q92v0nr1hcgts2amcjyqg3pq redis:7.4.0 manager1 Running Running 4 minutes
96+
redis.2.b4hovzed7id8irg1to42egue8 redis:7.4.0 worker2 Running Running About a minute
97+
\_ redis.2.7h2l8h3q3wqy5f66hlv9ddmi6 redis:7.4.0 worker1 Shutdown Shutdown 2 minutes ago
98+
redis.3.9bg7cezvedmkgg6c8yzvbhwsd redis:7.4.0 worker2 Running Running 4 minutes
9999
```
100100

101101
The swarm manager maintains the desired state by ending the task on a node

content/manuals/engine/swarm/swarm-tutorial/rolling-update.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ notoc: true
88

99
In a previous step of the tutorial, you [scaled](scale-service.md) the number of
1010
instances of a service. In this part of the tutorial, you deploy a service based
11-
on the Redis 3.0.6 container tag. Then you upgrade the service to use the
12-
Redis 3.0.7 container image using rolling updates.
11+
on the Redis 7.4.0 container tag. Then you upgrade the service to use the
12+
Redis 7.4.1 container image using rolling updates.
1313

1414
1. If you haven't already, open a terminal and ssh into the machine where you
1515
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.
2323
--replicas 3 \
2424
--name redis \
2525
--update-delay 10s \
26-
redis:3.0.6
26+
redis:7.4.0
2727

2828
0u6a4s31ybk7yw2wyvtikmu50
2929
```
@@ -61,7 +61,7 @@ Redis 3.0.7 container image using rolling updates.
6161
Parallelism: 1
6262
Delay: 10s
6363
ContainerSpec:
64-
Image: redis:3.0.6
64+
Image: redis:7.4.0
6565
Resources:
6666
Endpoint Mode: vip
6767
```
@@ -70,7 +70,7 @@ Redis 3.0.7 container image using rolling updates.
7070
applies the update to nodes according to the `UpdateConfig` policy:
7171

7272
```console
73-
$ docker service update --image redis:3.0.7 redis
73+
$ docker service update --image redis:7.4.1 redis
7474
redis
7575
```
7676

@@ -100,7 +100,7 @@ Redis 3.0.7 container image using rolling updates.
100100
Parallelism: 1
101101
Delay: 10s
102102
ContainerSpec:
103-
Image: redis:3.0.7
103+
Image: redis:7.4.1
104104
Resources:
105105
Endpoint Mode: vip
106106
```
@@ -135,16 +135,16 @@ Redis 3.0.7 container image using rolling updates.
135135
$ docker service ps redis
136136

137137
NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR
138-
redis.1.dos1zffgeofhagnve8w864fco redis:3.0.7 worker1 Running Running 37 seconds
139-
\_ redis.1.88rdo6pa52ki8oqx6dogf04fh redis:3.0.6 worker2 Shutdown Shutdown 56 seconds ago
140-
redis.2.9l3i4j85517skba5o7tn5m8g0 redis:3.0.7 worker2 Running Running About a minute
141-
\_ redis.2.66k185wilg8ele7ntu8f6nj6i redis:3.0.6 worker1 Shutdown Shutdown 2 minutes ago
142-
redis.3.egiuiqpzrdbxks3wxgn8qib1g redis:3.0.7 worker1 Running Running 48 seconds
143-
\_ redis.3.ctzktfddb2tepkr45qcmqln04 redis:3.0.6 mmanager1 Shutdown Shutdown 2 minutes ago
138+
redis.1.dos1zffgeofhagnve8w864fco redis:7.4.1 worker1 Running Running 37 seconds
139+
\_ redis.1.88rdo6pa52ki8oqx6dogf04fh redis:7.4.0 worker2 Shutdown Shutdown 56 seconds ago
140+
redis.2.9l3i4j85517skba5o7tn5m8g0 redis:7.4.1 worker2 Running Running About a minute
141+
\_ redis.2.66k185wilg8ele7ntu8f6nj6i redis:7.4.0 worker1 Shutdown Shutdown 2 minutes ago
142+
redis.3.egiuiqpzrdbxks3wxgn8qib1g redis:7.4.1 worker1 Running Running 48 seconds
143+
\_ redis.3.ctzktfddb2tepkr45qcmqln04 redis:7.4.0 mmanager1 Shutdown Shutdown 2 minutes ago
144144
```
145145

146146
Before Swarm updates all of the tasks, you can see that some are running
147-
`redis:3.0.6` while others are running `redis:3.0.7`. The output above shows
147+
`redis:7.4.0` while others are running `redis:7.4.1`. The output above shows
148148
the state once the rolling updates are done.
149149

150150
## Next steps

0 commit comments

Comments
 (0)