Skip to content

Commit 5a01d85

Browse files
authored
Merge pull request #385 from feiskyer/runtime
Add docs for runtime handler
2 parents 550c999 + c2f66f3 commit 5a01d85

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

docs/crictl.md

+31
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,37 @@ POD ID CREATED STATE NAME
113113
f84dd361f8dc5 17 seconds ago Ready busybox-sandbox default 1
114114
```
115115

116+
#### Run pod sandbox with runtime handler
117+
118+
Runtime handler requires runtime support. The following example shows running a pod sandbox with `runsc` hanlder on containerd runtime.
119+
120+
```sh
121+
$ cat pod-config.json
122+
{
123+
"metadata": {
124+
"name": "nginx-runsc-sandbox",
125+
"namespace": "default",
126+
"attempt": 1,
127+
"uid": "hdishd83djaidwnduwk28bcsb"
128+
},
129+
"logDirectory": "/tmp",
130+
"linux": {
131+
}
132+
}
133+
134+
$ crictl runp --runtime=runsc pod-config.json
135+
c112976cb6caa43a967293e2c62a2e0d9d8191d5109afef230f403411147548c
136+
137+
$ crictl inspectp c112976cb6caa43a967293e2c62a2e0d9d8191d5109afef230f403411147548c
138+
...
139+
"runtime": {
140+
"runtimeType": "io.containerd.runtime.v1.linux",
141+
"runtimeEngine": "/usr/local/sbin/runsc",
142+
"runtimeRoot": "/run/containerd/runsc"
143+
},
144+
...
145+
```
146+
116147
### Pull a busybox image
117148

118149
```sh

0 commit comments

Comments
 (0)