News for hackers. Stuff that matters.
Re:WebAssembly: Docker Without Containers by cpuguy83 on Thursday December 22, 2022 @12:02PM (#34095563)
The way this works is it uses a containerd shim. In containerd-land, shims are responsible for all the platform dependent setup/management of a container.

The "normal" shim on Linux is the runc shim (io.containerd.runc.v2). On Windows the shim is called runhcs (io.containerd.runhcs.v1).

The docker solution mentioned in the article modifies the "wasmtime" shim from https://github.com/containerd/runwasi so that it uses "wasmedge" instead. It also happens to be using an unreleased version of dockerd.

So how does this work with compose? Currently you need to specify the runtime for the container, there should be an option in the compose yaml for this.

How does it work with pods? You need to configure containerd's cri config with a runtime handler that specifies the wasmedge shim. Then you add a RuntimeClass to k8s and add that to your pod spec.

There are no comments on this comment yet.