File tree 1 file changed +31
-0
lines changed
1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,37 @@ POD ID CREATED STATE NAME
113
113
f84dd361f8dc5 17 seconds ago Ready busybox-sandbox default 1
114
114
```
115
115
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
+
116
147
### Pull a busybox image
117
148
118
149
``` sh
You can’t perform that action at this time.
0 commit comments