Skip to content
Commit Detail

Commit 6523ec4

Author
Greg Anders <ganders@cloudflare.com> 2026-03-23 15:57:18 -0500
Parents
8624cd9
Tree
0d9c992
Clone snapshot volumes when restoring a snapshot

This gives the exact same semantics that snapshot restoring will have in
production when it is implemented: restoring a snapshot to a mount point
masks the current contents of the mount point (Docker volumes do this)
and snapshots should be immutable (this is why we clone the volume
instead of just mounting it).

This is an improvement over the current archive API implementation,
which does not mask the mount point contents on restore and also has
very poor performance on macOS (caused by the snapshot contents having
to traverse the Docker API socket multiple times).

Files changed