Skip to content

Commit d84bfef

Browse files
committed
testutil: use containerd config version 2
Signed-off-by: Akihiro Suda <[email protected]>
1 parent 11f4528 commit d84bfef

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

util/testutil/workers/containerd.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,12 @@ func (c *Containerd) New(ctx context.Context, cfg *integration.BackendConfig) (b
135135
deferF.Append(func() error { return os.RemoveAll(tmpdir) })
136136

137137
address := getContainerdSock(tmpdir)
138-
config := fmt.Sprintf(`root = %q
138+
config := fmt.Sprintf(`version = 2
139+
root = %q
139140
state = %q
140141
# CRI plugins listens on 10010/tcp for stream server.
141142
# We disable CRI plugin so that multiple instance can run simultaneously.
142-
disabled_plugins = ["cri"]
143+
disabled_plugins = ["io.containerd.grpc.v1.cri"]
143144
144145
[grpc]
145146
address = %q

0 commit comments

Comments
 (0)