3 ms·
But, if docker is running on WASM-WASI like it is here, maybe it's possible to do a full build toolchain as well?
by traverseda 3y ago
But, if docker is running on WASM-WASI like it is here, maybe it's possible to do a full build toolchain as well?
- jedisct1 3y agoDocker is not running on wasm. There's a wasm app, that is a x86_64 CPU emulator, used to run a Linux VM, on top of which anything can run. Including existing Docker images for x86_64.
- traverseda 3y agoSure, fine, if an largely-compliant OCI runtime is running in a wasm-wasi context, then I see no reason you couldn't stub out syscalls to reduce dependence on linux-kernel syscalls, and gradually replace the kernel with a minimal set of stub syscalls that make sense, sort of like how gvisor has implemented 200+ linux syscalls in GO and presents an alternative OCI runtime for docker containers. Gradually reduce dependence on an emulated linux-kernel in favour of an alternative lightweight POSIX implementation that runs in pure WASM. This is something that is already done with other OCI runtimes like sysbox and gvisor.