We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd37796 commit 89a3603Copy full SHA for 89a3603
chapter07/hello-wasm-container/README.md
@@ -4,6 +4,9 @@
4
5
```shell
6
cargo build --target wasm32-wasip1 --release
7
-docker buildx build --load --platform wasi/wasm32 -t hello-wasm-docker .
8
-docker run --rm --runtime=io.containerd.wasmtime.v1 --platform=wasi/wasm32 hello-wasm-docker
+# move .wasm to /bin
+docker buildx create --name wasm-builder --driver docker-container --use
9
+docker buildx build --platform wasi/wasm32 -t hello-wasm-container --output type=oci,dest=hello-wasm-container.oci .
10
+sudo ctr -n default images import --platform=wasi/wasm32 hello-wasm-container.oci
11
+sudo ctr run --rm --runtime io.containerd.wasmtime.v1 --platform wasi/wasm32 docker.io/library/hello-wasm-container:latest hello-wasm-instance
12
```
0 commit comments