Skip to content

Commit

Permalink
Create runwasi.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sangam14 authored Apr 3, 2024
1 parent 10c0e83 commit 16e04f2
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions content/docs/containerD/runwasi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
title: " contaiNERD + runwasi "
weight : 9
---


#### install rust

```
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```

#### clone runwasi

```
$ git clone https://github.com/containerd/runwasi.git
```

### install wasmedge-containerd-shim

```
cd runwasi
make build-wasmedge
INSTALL="sudo install" LN="sudo ln -sf" make install-wasmedge
```

### run wasm using ctr cli

```
make load
sudo ctr run --rm --runtime=io.containerd.wasmedge.v1 ghcr.io/containerd/runwasi/wasi-demo-app:latest testwasm /wasi-demo-app.wasm echo 'hello'
```

0 comments on commit 16e04f2

Please sign in to comment.