Skip to content

Commit 89a3603

Browse files
committed
[pr3] update hello-wasm-container readme
Signed-off-by: danbugs <[email protected]>
1 parent fd37796 commit 89a3603

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

chapter07/hello-wasm-container/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
```shell
66
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
7+
# move .wasm to /bin
8+
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
912
```

0 commit comments

Comments
 (0)