Skip to main content
In this guide, we’ll walk through planning and executing a comprehensive disaster-recovery strategy for Docker Trusted Registry (DTR). You’ll learn how to design a fault-tolerant DTR architecture, back up critical metadata, and restore your registry in the event of failure.

Why You Need a Disaster-Recovery Plan for DTR

By default, a single-replica DTR using local filesystem storage provides no redundancy—if that node crashes, the registry goes offline. To avoid downtime and data loss, implement:
  1. Multiple DTR replicas
  2. A private overlay network (e.g., DTR-OL) connecting them
  3. Quorum-based consensus (minimum three replicas)
  4. An external object store (Amazon S3, Google Cloud Storage, or Azure Blob Storage) for image layers
Local filesystem storage on individual replicas is not fault-tolerant. Always use an external object store for image data at scale.

DTR High Availability Architecture

The image is a diagram illustrating a Docker Trusted Registry (DTR) backup setup, showing the interaction between manager and worker nodes within a Docker Swarm, and the storage of image data in S3.

What to Back Up in DTR

Even with image layers safely stored in S3 (or equivalent), you must preserve DTR’s metadata:
The image is a diagram illustrating a Docker Trusted Registry (DTR) backup setup, showing components like manager and worker nodes, and various data categories such as configurations, services, and image data.

Backing Up DTR Metadata

Run the DTR backup container against any existing replica to generate a tar archive of all metadata:
For a full list of backup flags and how to obtain credentials, see the DTR disaster recovery documentation.

Restoring DTR Metadata

Follow these steps to restore your registry metadata after a failure:
  1. Destroy existing DTR containers to clean up state:
  2. (If needed) Rehydrate image layers in your object store (e.g., re-upload to S3).
  3. Import the metadata backup:
  4. Re-deploy additional replicas and confirm quorum membership.
Refer to the official restore guide for advanced options.

Summary Table

Disaster recovery for Docker Enterprise encompasses three layers. Below is a high-level overview: With these backups in place, you can restore your entire Docker Enterprise environment—Swarm, UCP, and DTR—to full operation after an outage.

Watch Video