News for hackers. Stuff that matters.
Re:Kubernetes is deprecating Docker runtime support by k__ on Wednesday December 02, 2020 @02:38PM (#25280543)
Half-OT: What are alternative runtimes and why would you use them?
Re:Kubernetes is deprecating Docker runtime support by jsmith45 on Wednesday December 02, 2020 @02:57PM (#25280787)
The main alternative runtime that I know of (at the level of containerd) is CRI-O. These runtimes are at the level of fetching images, preparing manifests etc. I'm not really sure what benefits they provide. CRI-O is intended to be kubernetes specific, and thus lacks any features that containerd would have that k8s does not need. This in theory ought to mean smaller, lighter, more easily auditable code.

There is another lower level of runtime, the OCI runtime, of which the main implementation is runc. Alternatives have interesting attributes, like `runv` running containers in VMs with their own kernel to get even grater isolation, `runhcs` which is the OCI runtime for running windows containers, etc. Most if not all of the higher level runtimes allow switching out the OCI runtime, but in general sticking with the default of `runc` is fine.

Re:Kubernetes is deprecating Docker runtime support by ghaff on Wednesday December 02, 2020 @04:05PM (#25281627)
Yeah, the terminology around "runtime" is confusing and is used inconsistently. As you say, the actual runtime is something like runc which CRI-O (and I believe containerd) normally uses. CRI-O, as the name suggests, is an implementation of the Kubernetes Container Runtime Interface--which should work with any OCI-compliant runtime.
Re:Kubernetes is deprecating Docker runtime support by freedomben on Wednesday December 02, 2020 @02:51PM (#25280715)
In the OpenShift world we use CRI-O and it has been awesome for us. I've never actually had it be a problem. Occasionally have to SSH into a node and inspect with crictl to see what's going on but it's almost always PEBKAC that points at CRI-O when it's not CRI-O's fault. I'd definitely recommend looking at it.
Re:Kubernetes is deprecating Docker runtime support by sandGorgon on Thursday December 03, 2020 @12:51AM (#25285853)
How has been your experience with crictl ?

Does it do everything that docker cli does ? Build, pull, etc ?

Re:Kubernetes is deprecating Docker runtime support by jsmith45 on Thursday December 03, 2020 @09:14AM (#25288968)
Only docker, buildkit, podman, buildah, and some non-Dockerfile based tools are able to build. CRI-O or containerd do not have build functionality. It does have pretty much everything else you expect like pull, ps, run exec, attach, rm, rmi, etc.

If you need builds, I'd suggest either run dockerd alongside a containerd kubelet, or use buildkit.

Re:Kubernetes is deprecating Docker runtime support by sandGorgon on Friday December 04, 2020 @02:22AM (#25299874)
That's super valuable. Thanks! I did not know about buildkit (and buildctl), but now see it.

Very valuable. Thanks!!!

Re:Kubernetes is deprecating Docker runtime support by seabrookmx on Wednesday December 02, 2020 @11:34PM (#25285419)
One such alternative runtime with tangible differences to containerd/cri-o is Kata[1], which actually runs OCI images as microvm's. This has some benefits if the applications you're running are untrusted/need additional sandboxing, such as if you're running a PaaS on bare-metal k8s.

[1]: https://github.com/kata-containers/runtime

Re:Kubernetes is deprecating Docker runtime support by k__ on Thursday December 03, 2020 @08:04AM (#25288410)
I did some research, and it also seems that there is a way for containerd to manage Firecracker microvms.
Re:Kubernetes is deprecating Docker runtime support by mfer on Wednesday December 02, 2020 @02:43PM (#25280610)
For a runtime in your Kubernetes cluster there are containerd and cri-o. These are good for Docker / Open Container Initiative images.

There are others... some for non-Docker image support. There are people running other things than just Docker these days. They are more niche case.

Re:Kubernetes is deprecating Docker runtime support by eska on Thursday December 03, 2020 @07:02AM (#25288040)
A simple example would be mostly running Linux applications on Linux machines (= containers), but having a Windows application that needs to run in a Windows VM on a Linux machine (VM, or a container in a VM).