Skip to content

A containerd shim implementation for WebAssembly modules

License

Notifications You must be signed in to change notification settings

Taction/containerd-shim-wasm

 
 

Repository files navigation

containerd wasm shim

PROOF OF CONCEPT WARNING

A wasm implementation of a containerd runtime using the containerd shim interface

Uses wasmer to execute wasm/wasi binaries

debug

```sh
make debug
cp containerd-shim-wasm-v1 /usr/local/bin/
```

build image

docker build -t docker4zc/wasmstring:latest .
docker push docker4zc/wasmstring:latest
ctr images pull docker.io/docker4zc/wasmstring:latest

debug

export CONTAINERD_SHIM_RUNHCS_V1_WAIT_DEBUGGER="true"
# you can check by running echo $CONTAINERD_SHIM_RUNHCS_V1_WAIT_DEBUGGER
ctr run --rm --runtime=io.containerd.wasm.v1 docker.io/docker4zc/wasmstring:latest testwasm

references

https://www.jamessturtevant.com/posts/attaching-a-debugger-to-windows-containerd-shim/

About

A containerd shim implementation for WebAssembly modules

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 95.5%
  • Shell 1.9%
  • Makefile 1.8%
  • Dockerfile 0.8%