You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// From now on task manager works via shim manager, which has different home directory.
105
+
// Check if there are any leftovers from previous containerd versions and migrate home directory,
106
+
// so we can properly restore existing tasks as well.
107
+
iferr:=migrateTasks(ic, shimManager); err!=nil {
124
108
returnnil, err
125
109
}
126
110
127
-
// Internally task manager relies on shim manager to launch task shims.
128
-
// It's also possible to use shim manager independently and launch other types of shims.
129
-
//
130
-
// Ideally task manager should depend on shim instance we registered above, however it'll use
131
-
// different home directory (`io.containerd.runtime.v2.task` vs `io.containerd.runtime.v2.shim`),
132
-
// which will break backward compatibility when upgrading containerd to the new version.
133
-
//
134
-
// For now, we create another instance of shim manager with the "old" home directory, so shim tasks
135
-
// are properly restored, but will work independently.
136
-
//
137
-
// See more context https://github.com/containerd/containerd/pull/5918#discussion_r705434412
0 commit comments