From 7772f7dd995a7ce0ff610f8ae1cc726246cc8dae Mon Sep 17 00:00:00 2001 From: Bin Liu Date: Fri, 29 Apr 2022 22:26:32 +0800 Subject: [PATCH] runk: set BinaryName for runk for containerd The default runtime for io.containerd.runc.v2 is runc, to use runk, the containerd configuration should set the default runtime to runk or add BinaryName options for the runtime. Fixes: #4177 Signed-off-by: Bin Liu --- src/tools/runk/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tools/runk/README.md b/src/tools/runk/README.md index 81f02fc598..41663625a6 100644 --- a/src/tools/runk/README.md +++ b/src/tools/runk/README.md @@ -93,7 +93,7 @@ $ bundle_dir="bundle" $ rootfs_dir="$bundle_dir/rootfs" $ image="busybox" $ mkdir -p "$rootfs_dir" && (cd "$bundle_dir" && runk spec) -$ sudo docker export $(sudo docker create "$image") | tar -C "$rootfs_dir" -xvf - +$ sudo docker export $(sudo docker create "$image") | tar -C "$rootfs_dir" -xf - ``` > **Note:** @@ -160,7 +160,7 @@ $ sudo runk delete test ### Prerequisites for `runk` with containerd * `containerd` v1.2.4 or above -* `cri-tool` +* `cri-tools` > **Note:** > [`cri-tools`](https://github.com/kubernetes-sigs/cri-tools) is a set of tools for CRI @@ -197,6 +197,8 @@ version = 2 runtime_type = "io.containerd.runc.v2" [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runk] runtime_type = "io.containerd.runc.v2" + [plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runk.options] + BinaryName = "/usr/local/bin/runk" EOF ```