WebAssembly on the Server: WASI and the Container Story
Red Hat's CTO and a principal software engineer discuss how WASI extends WebAssembly beyond the browser, why sandboxed OCI images already work today, and what Kubernetes can learn from the serverless playbook.
Published on • November 15, 2026
AI Assistant

WebAssembly was designed to run untrusted code in a browser tab. On the server, that same property — code that runs in a sandbox with no ambient authority — is exactly what you want for edge nodes, multi-tenant plugins, and functions that come from somewhere you don’t fully trust. In Red Hat’s Technically Speaking episode 18, CTO Chris Wright sits down with principal software engineer Ivan Font to trace the path from browser bytecode to server-side platform, and the conversation lands on a contrarian conclusion: Wasm is not coming for containers. It is coming with them. Here is how that story unfolds, and why it still frames the architecture decisions teams make today.
Bytecode, portability, and why Wasm works on servers at all
Wright’s opening framing matters: Wasm is “a low-level assembly-like language originally designed to execute code portably in a browser” — you compile C++, Rust, Go, or Python down to bytecode, and any machine with the right interpreter can run it at near-native speed. Two properties make that transfer to the server possible:
- CPU and OS agnosticism. The same
.wasmbinary runs on x86, ARM, Windows, and Linux without rebuilds. Container images don’t do this — they encode a platform, a base OS, and a libc. - Sandboxed by default. As Font puts it, Wasm code “runs in this sandbox environment, and so you get that security posture that’s really attractive” for running untrusted or community-contributed code across many platforms without sacrificing performance.
That combination is why Wasm modules appeal at the edge, where devices are resource-constrained and the code being executed may come from a third party.
WASI: the system interface that changes everything
Font is explicit that raw Wasm is not enough: “WASM is limited by itself. The future of it as a server-side technology really depends on where this technology WASI goes.” WASI — the WebAssembly System Interface — extends Wasm with “a set of common POSIX-style APIs that provide typical operating system-like features, such as things like file systems, sockets, clocks, and random numbers.”
The critical design constraint Font highlights is that WASI must “maintain its security-focused approach” and “restrict a lot of the APIs that you can call without having the runtime involved to delegate permissions that the WASM module will need.” That is capability-based security: a module starts with zero access to the filesystem, network, or clock, and the embedding host explicitly grants each capability. Compare this with containers, where the default posture is a shared kernel and process isolation that must be hardened after the fact with seccomp profiles, AppArmor, and rootless runtimes.
Wright raises the historical warning: Java promised portability, then JNI “poked a hole through the JVM abstraction layer and became anchored directly to the OS.” Font’s answer is that Wasm has already avoided Java’s fate by being part of the web platform — applets died, Wasm didn’t — but only if WASI keeps refusing to become a lowest-common-denominator grab bag of OS calls.
The container story: ship Wasm in an OCI image
Here is the part that surprises people who expect Wasm to fight containers. Font describes what already works in production tooling:
“Right now, we have a way to allow developers to run their WebAssembly modules as containers by leveraging the existing containers’ infrastructure. So you can actually build your WASM module once in a lightweight OCI image and execute it on any of your devices using tools like Podman and OpenShift.”
The workflow is the container workflow you already have:
# Build a Wasm module into a minimal OCI image
podman build -t my-wasm-app .
# Run it with the containerd Wasm shim on any node
podman run my-wasm-app
Because the artifact is an OCI image, registries, image scanning, signature verification (cosign), admission policies, and GitOps tooling all keep working unchanged. The container is the packaging and distribution envelope; the Wasm runtime inside it does the execution. This “Wasm in a container” model — and its sibling “Wasm next to containers via a containerd shim” — is the pragmatic middle ground most organizations are actually deploying.
Kubernetes will pivot, again
Wright asks where WASI risks losing portability, and Font answers with an analogy that has aged well: Kubernetes absorbed serverless rather than being displaced by it.
“Serverless was going to be this huge paradigm shift and disrupt Kubernetes, but Kubernetes was smart and ended up saying, ‘Bring your serverless workloads onto Kubernetes and you can run them here.’ And I kind of see the same thing playing out with WebAssembly.”
If running Wasm inside a container stops making sense for some workloads, Kubernetes can still pivot and “provide a generic workload abstraction for any type of workload.” That prediction maps directly onto today’s mechanics: a RuntimeClass selecting a Wasm-capable containerd shim (containerd-shim-wasmedge, containerd-shim-spin, or runwasi-based shims wrapping Wasmtime), with the kubelet, CRI, Services, probes, and autoscaling untouched. Wasm pods and ordinary pods share the same nodes and the same control plane.
Wright’s closing image — “a world where Kubernetes is beyond containers. We already have VMs bringing in WASM workloads” — is now a configuration file, not a thought experiment. Kata Containers and Firecracker already run VM-isolated pods; runwasi runs Wasm-isolated ones; the control plane doesn’t care which.
Pitfalls to watch
Two cautions emerge from the conversation that remain relevant:
- Don’t let WASI become JNI. Every new host API is a potential portability break and a new attack surface. The W3C WebAssembly Community Group’s staged proposal process exists precisely to keep APIs standard before they become de facto requirements.
- Wasm won’t replace the installed base. Font is candid: “I’m not someone that subscribes to the theory that it’s going to replace containers, just like containers didn’t replace VMs. I see it as just another tool in the developer’s toolbox.” Existing long-running, stateful, OS-dependent services stay in containers; new sandboxed, edge-bound, or plugin-shaped workloads are where Wasm wins.
Where this leaves your architecture
The actionable takeaways from Wright and Font’s discussion: package server-side Wasm as OCI images to inherit your existing supply-chain tooling; use WASI’s capability model — not container hardening — as the isolation boundary for untrusted code; and on Kubernetes, treat Wasm as another runtime class rather than a parallel platform. The browser was only ever the first host for WebAssembly. The interesting deployment target is the one where the container ecosystem already exists, and Wasm plugs into it.
References
- Red Hat, “WebAssembly Breaks Away from the Browser”, Technically Speaking Episode 18 (Chris Wright & Ivan Font), March 29, 2023 — https://www.redhat.com/en/technically-speaking/WebAssembly
- Red Hat, “Running WebAssembly Workloads on Container Runtimes” — https://next.redhat.com/2023/02/01/running-webassembly-workloads-on-container-runtimes/
- WASI Introduction — https://wasi.dev/
- runwasi (containerd shims for Wasm runtimes) — https://github.com/containerd/runwasi