Upgrading Docker

A node is a physical or virtual machine with Docker installed. The nodes should contains one or more units (containers).

Sometimes will be necessary to upgrade the Docker. It is recommended that you use the latest Docker version.

The simple way to do it is just upgrade Docker. You can do it following the official guide.

This operation can raise a downtime in the units deployed in the nodes.

How to upgrade with no downtime

Note

You should use this guide to upgrade the entire host (a new version of the Linux distro, for instance) or Docker itself.

A way to upgrade with no downtime is to move all containers from the node that you want to upgrade to another node, upgrade the node and then move the containers back.

You can do it using the tsuru-admin containers-move command:

$ tsuru-admin containers-move <from host> <to host>