Passing arguments to OCI runtime #2146
-
Hi, I'm trying out "runtimes": {
"runsc": {
"path": "/usr/local/bin/runsc"
},
"runsc-kvm": {
"path": "/usr/local/bin/runsc",
"runtimeArgs": [
"--platform=kvm"
]
}, With containerd, something like that would work too: version = 2
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
runtime_type = "io.containerd.runc.v2"
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runsc]
runtime_type = "io.containerd.runsc.v1"
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runsc.options]
TypeUrl = "io.containerd.runsc.v1.options"
ConfigPath = "/etc/containerd/runsc.toml" # runsc.toml
[runsc_config]
platform = "kvm" Alas, What would be the best approach to achieve that, or is that even possible? Thanks for the help. :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Workaround: create #!/bin/sh
exec /usr/local/bin/runsc --platform=kvm "$@" |
Beta Was this translation helpful? Give feedback.
Workaround: create
/usr/local/bin/runsc-kvm
with the following content, and runnerdctl
with--runtime=runsc-kvm