mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-09 03:48:05 +00:00
Merge pull request #4178 from liubin/4177
runk: set BinaryName for runk for containerd
This commit is contained in:
commit
1dd6f85a17
@ -93,7 +93,7 @@ $ bundle_dir="bundle"
|
|||||||
$ rootfs_dir="$bundle_dir/rootfs"
|
$ rootfs_dir="$bundle_dir/rootfs"
|
||||||
$ image="busybox"
|
$ image="busybox"
|
||||||
$ mkdir -p "$rootfs_dir" && (cd "$bundle_dir" && runk spec)
|
$ 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:**
|
> **Note:**
|
||||||
@ -160,7 +160,7 @@ $ sudo runk delete test
|
|||||||
### Prerequisites for `runk` with containerd
|
### Prerequisites for `runk` with containerd
|
||||||
|
|
||||||
* `containerd` v1.2.4 or above
|
* `containerd` v1.2.4 or above
|
||||||
* `cri-tool`
|
* `cri-tools`
|
||||||
|
|
||||||
> **Note:**
|
> **Note:**
|
||||||
> [`cri-tools`](https://github.com/kubernetes-sigs/cri-tools) is a set of tools for CRI
|
> [`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"
|
runtime_type = "io.containerd.runc.v2"
|
||||||
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runk]
|
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runk]
|
||||||
runtime_type = "io.containerd.runc.v2"
|
runtime_type = "io.containerd.runc.v2"
|
||||||
|
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runk.options]
|
||||||
|
BinaryName = "/usr/local/bin/runk"
|
||||||
EOF
|
EOF
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user