Technology · Ebook
container2wasm: Running Containers Anywhere Wasm Runs
by Shriira Press
4.5(407)108 pagesPublished 2026
container2wasm (c2w) is a converter that turns an ordinary Linux container image into a WebAssembly module able to run on WASI runtimes like wasmtime and wazero, and even inside a browser tab with no server behind it. It works by bundling a CPU emulator — Bochs for x86_64, TinyEMU for riscv64 — together with a Linux kernel and the container's own userspace, so unmodified containers simply run on top of Wasm. This book covers the problem c2w solves, its layered emulation architecture, the BuildKit, wasi-vfs, and wizer conversion pipeline, the c2w and c2w-net command-line workflow, networking and the in-browser story, and where this CNCF sandbox project fits beside runwasi and Docker+Wasm.
Contents
- 1Preface
- 2Chapter 1 — Containers, Meet WebAssembly
- 3Chapter 2 — The Emulation Architecture
- 4Chapter 3 — Inside the Conversion Pipeline
- 5Chapter 4 — Using c2w
- 6Chapter 5 — Networking and the Browser
- 7Chapter 6 — c2w in Practice
