Skip to main content
Ensure business continuity by learning how to back up and restore your Docker UCP deployment. This guide covers:
  • What to back up
  • CLI and UI backup methods
  • Step-by-step restore procedures
  • Key considerations and best practices

Components to Back Up

Protect the following UCP components to guarantee a smooth recovery:
UCP does not back up Docker Swarm services, configs, or overlay networks. Use Docker Swarm tools for those workloads.

Backing Up UCP

You can perform backups via the CLI or the UCP web interface.

1. Backup with the CLI

Run the official UCP image in backup mode. Mount the Docker socket and a host directory to store the archive:
  • --file specifies the output archive path
  • --passphrase encrypts the backup
  • --include-logs toggles container logs (default: true)

2. Backup via UCP Web UI

  1. Log in as an admin.
  2. Navigate to Admin Settings → Backup.
  3. Click Start Backup, set a passphrase, and monitor progress.

Restoring UCP

Follow these two main steps to restore UCP from a backup:

Step 1. Uninstall Any Existing UCP

If UCP is already installed, remove it cleanly:

Step 2. Perform the Restore

Pipe the backup archive into the UCP restore command:
During restore you can choose to:
  • Reuse the same Swarm cluster
  • Provision a new Swarm cluster
  • Restore onto a standalone Docker host (UCP initializes Swarm automatically)
The image contains a list of notes about backup and restore processes related to Docker Enterprise and Swarm workloads. It highlights limitations and requirements for successful backups and restores.

Key Considerations

Always verify that your passphrase and backup archive are accessible before starting a restore.
The image contains notes about backup and restore processes for Docker Enterprise, highlighting limitations and requirements for swarm workloads and cluster versions.

References

Watch Video