What are the steps when upgrading docker engine on swarm?

tatuh
Sat, 17 Jul 2021 13:58:57 +0000
Swarm

Hi,

Just for clarifying, what is the correct way to upgrade docker engine on swarm?
Is it important to upgrade the manager engines first?

And then:

1. Drain first node.sudo docker node update --availability drain worker2

2. Verify No containers are on drained node.sudo docker ps #on worker2

3. Upgrade docker engine.

4. Check node in swarm manager.sudo docker node ls

5. Change availability to Active.sudo docker node update --availability Active

6. Repeat the steps for other nodes.

And when upgrading from 17.x to 20.x, is it mandatory to upgrade major version at a time, or is possible to jump like 18.x to 20.x?

Thanks for any advantage!

3 posts - 2 participants