Skip to content

Instantly share code, notes, and snippets.

@0xE282B0
Created March 1, 2023 19:55
Show Gist options
  • Save 0xE282B0/0e5e0653b6d6ff9f74e6748b3b167771 to your computer and use it in GitHub Desktop.
Save 0xE282B0/0e5e0653b6d6ff9f74e6748b3b167771 to your computer and use it in GitHub Desktop.
Run Fermyon Spin images in Docker Desktop with KWasm extension
services:
spin-app:
image: ghcr.io/deislabs/containerd-wasm-shims/examples/spin-rust-hello:latest
command: /
platform: wasi/wasm
runtime: io.containerd.spin.v1
ports:
- 8080:80
  • Latest Docker Desktop
  • Settings > Features in development > Use containerd for pulling and storing images
  • Install Docker KWasm extension
    • Click on Install Spin Button

Run demo app with docker CLI

docker run --platform wasi/wasm --runtime io.containerd.spin.v1 -p 80:8080 -d ghcr.io/deislabs/containerd-wasm-shims/examples/spin-rust-hello:latest /

Or with docker-compose

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment