Open antoineco opened 12 months ago
The culprit was actually simple to find. Shims must follow the naming convention io.containerd.*
:
HI @antoineco
When I try to investigate the issue and run with docker.
root@kay200:~# docker container create --runtime com.example.sample.v1 docker.m.daocloud.io/nginx:alpine
Error response from daemon: Unknown runtime specified com.example.sample.v1
So Does the expected result need to be the same with docker :-)
I guess that's fine for me. If shims for containerd need to follow a certain naming convention I'll follow that convention.
This is still a bug
any update?
Description
Unlike
ctr
— which I used here as a reference —nerdctl
does not honor the--runtime
flag while creating a container.Steps to reproduce the issue
nerdctl
, and set the--runtime
flag:ctr
, and set the--runtime
flag:ctr
created the container with the expected runtime, butnerdctl
didn't:Describe the results you received and expected
nerdctl container create --runtime com.example.sample.v1
creates a container with thecom.example.sample.v1
runtime. Instead, it created a container with the default runtime,io.containerd.runc.v2
.What version of nerdctl are you using?
(The issue already occurred with v1.4.0)
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information