s
Jan. 3, 2024, 11:21 p.m. |

Simon Willison's Weblog simonwillison.net

container2wasm


"Converts a container to WASM with emulation by Bochs (for x86_64 containers) and TinyEMU (for riscv64 containers)" - effectively letting you take a Docker container and turn it into a WebAssembly blob that can then run in any WebAssembly host environment, including the browser.

Run "c2w ubuntu:22.04 out.wasm" to output a WASM binary for the Ubuntu 22:04 container from Docker Hub, then "wasmtime out.wasm uname -a" to run a command.

Even better, check out the live browser demos linked …

binary browser containers docker docker container environment the browser ubuntu wasm webassembly

AI Research Scientist

@ Vara | Berlin, Germany and Remote

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Senior Machine Learning Engineer (MLOps)

@ Promaton | Remote, Europe

Data Analyst (Digital Business Analyst)

@ Activate Interactive Pte Ltd | Singapore, Central Singapore, Singapore