Skip to content
This repository was archived by the owner on Jan 2, 2026. It is now read-only.

Commit 5eb3705

Browse files
committed
fix: add missing snapshot methods to containerd driver
1 parent e4bbc14 commit 5eb3705

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

runtime/drivers/containerd/task.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,24 @@ func (ct *containerTask) Start(ctx context.Context) error {
4949
return fmt.Errorf("containerd driver start not fully implemented - needs OCI runtime integration")
5050
}
5151

52+
// StartFromSnapshot starts the container by restoring from a snapshot.
53+
// Note: Containerd containers don't support VM-style snapshots.
54+
func (ct *containerTask) StartFromSnapshot(ctx context.Context, globalSnapshotPath, jailSnapshotPath string) error {
55+
return fmt.Errorf("containerd driver does not support snapshot restore")
56+
}
57+
58+
// Snapshot saves the container state to a file.
59+
// Note: Containerd containers don't support VM-style snapshots.
60+
func (ct *containerTask) Snapshot(ctx context.Context, path string) error {
61+
return fmt.Errorf("containerd driver does not support snapshots")
62+
}
63+
64+
// Restore restores the container state from a snapshot file.
65+
// Note: Containerd containers don't support VM-style snapshots.
66+
func (ct *containerTask) Restore(ctx context.Context, path string) error {
67+
return fmt.Errorf("containerd driver does not support snapshot restore")
68+
}
69+
5270
// monitor watches the task and handles exit.
5371
func (ct *containerTask) monitor() {
5472
defer close(ct.waitChan)

0 commit comments

Comments
 (0)