Hi Sandeep, Correct - Docker doesn't support shimv2 yet. However, getting Kata 2.x running with containerd is very simple and the CLI for containerd is reasonably similar to docker: # Kata 1.x $ docker run --runtime=kata-runtime ... # Kata 2.x $ ctr run --runtime io.containerd.kata.v2 ... See [1] for further details. Cheers, James [1] - https://github.com/kata-containers/kata-containers/blob/2.0-dev/docs/install... --- https://katacontainers.io/ | https://github.com/kata-containers Open Source Technology Center Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3 1RJ. ________________________________________ From: Gupta, Sandeep <Sandeep.Gupta@amd.com> Sent: Monday, 4 January 2021 11:09 To: Fabiano FidĂȘncio; Gupta, Sandeep Cc: kata-dev@lists.katacontainers.io Subject: Re: [kata-dev] Regarding, Kata 2.0.0, kata-runtime [AMD Official Use Only - Internal Distribution Only] Thank you Fabiano, Will try the deployed version first, One more to check please - In my understanding - Docker doesn't yet support the containerd shimv2 architecture directly, Kata 2.0.0 won't work with Docker ? Is this correct ? Any workarounds. --Best Regards --Sandeep -----Original Message----- From: Fabiano FidĂȘncio <fidencio@redhat.com> Sent: Sunday, January 3, 2021 11:38 PM To: Gupta, Sandeep <Sandeep.Gupta@amd.com> Cc: kata-dev@lists.katacontainers.io Subject: Re: [kata-dev] Regarding, Kata 2.0.0, kata-runtime [CAUTION: External Email] Sandeep, [...]
Trying version-1 syntax: (for /usr/local/bin/containerd -config /etc/containerd/config.toml),
# cat /etc/containerd/config.toml [plugins.cri.containerd] no_pivot = false
[plugins.cri.containerd.runtimes] [plugins.cri.containerd.runtimes.runc] runtime_type = "io.containerd.runc.v1"
[plugins.cri.containerd.runtimes.runc.options] NoPivotRoot = false NoNewKeyring = false ShimCgroup = "" IoUid = 0 IoGid = 0 BinaryName = "runc" Root = "" CriuPath = "" SystemdCgroup = false
[plugins.cri.containerd.runtimes.kata] runtime_type = "io.containerd.kata.v2" [plugins.cri.containerd.runtimes.kata.options] ConfigPath = "/etc/kata-containers/configuration.toml"
[plugins.cri.containerd.runtimes.katacli] runtime_type = "io.containerd.runc.v1" [plugins.cri.containerd.runtimes.katacli.options] NoPivotRoot = false NoNewKeyring = false ShimCgroup = "" IoUid = 0 IoGid = 0 BinaryName = "/usr/local/bin/kata-runtime" Root = "" CriuPath = "" SystemdCgroup = false
[...]
/# ctr run --runtime io.containerd.run.kata.v2 -t --rm docker.io/library/busybox:latest sh
ctr: Failed to check if grpc server is working: unexpected EOF: unknown
I can discuss this Issue in, Kata AC call in 2021 on January 5th.
We can, but I think it may be easier to debug this via e-mail or Slack. So, I'd like to ask you a few questions that will help me (and hopefully others) to understand where the error is coming from. * When you're using 2.x, you're only replacing the runtime binary, but also the image and the agent inside it, right? - The reason I'm asking is because 2.x runtime doesn't speak the same language as the 1.x agent. * Is your agent built using musl or gnu libc? If you want to give it a quick try just to ensure kata 2.0 works for you before you start hacking the code, I'd suggest using https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com... I hope that helps! Best Regards, -- Fabiano FidĂȘncio _______________________________________________ kata-dev mailing list kata-dev@lists.katacontainers.io http://lists.katacontainers.io/cgi-bin/mailman/listinfo/kata-dev --------------------------------------------------------------------- Intel Corporation (UK) Limited Registered No. 1134945 (England) Registered Office: Pipers Way, Swindon SN3 1RJ VAT No: 860 2173 47 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.