Introduction
In this lab, you will learn how to manage the availability of Docker cluster volumes using the docker volume update
command. You will begin by creating a cluster volume, which is essential for sharing data across nodes in a Docker Swarm.
Following the creation, you will explore how to change the volume's availability state. This includes updating the availability to pause
, which prevents new tasks from using the volume, and then to drain
, which aims to move tasks away from nodes where the volume is unavailable. Finally, you will learn how to set the availability back to active
, allowing the volume to be fully utilized by new and existing tasks. This lab provides practical experience in controlling how your cluster volumes are accessed and used within a Swarm environment.