Upgrading a cluster of swarm modes

Docker is changing so fast, so I'm trying to figure out if I can upgrade the Docker Swarm cluster (swarm). For example, let's say that I run 1.12 and I have 3 node services working with clusters. Let's also say that Docker 1.13 is coming out, and I want to update the engines that make up the cluster swarm. Is there a way to do this, which does not include re-creating the cluster, would prefer an update for almost sliding engines?

Thank!

+4
source share
1 answer
  • Drain the node first.

    sudo docker node update - available working drainage2

  • Make sure the containers are not merged node.

    sudo docker ps #on worker2

  • Upgrade the docker engine.
  • Check node in swarm manager.

    sudo docker node ls

  • .

    sudo docker node update -- Active

  • .
+11

Source: https://habr.com/ru/post/1656169/


All Articles