@@ -8,8 +8,8 @@ notoc: true
88
99In a previous step of the tutorial, you [ scaled] ( scale-service.md ) the number of
1010instances 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
14141 . 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